mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Rename GroupWikiPage.slug to path
Rename GroupWikiPage.slug to path
"Path" is more correct now if there can be folders involved. I'll probably want to add a slug property back, which can be parsed out of the path.merge-requests/76/merge
Deimos
5 years ago
10 changed files with 57 additions and 33 deletions
-
24tildes/alembic/versions/f20ce28b1d5c_rename_group_wiki_pages_slug_to_path.py
-
12tildes/tildes/models/group/group_wiki_page.py
-
8tildes/tildes/resources/group.py
-
10tildes/tildes/routes.py
-
2tildes/tildes/templates/group_wiki.jinja2
-
6tildes/tildes/templates/group_wiki_edit_page.jinja2
-
6tildes/tildes/templates/group_wiki_page.jinja2
-
4tildes/tildes/templates/topic_listing.jinja2
-
12tildes/tildes/views/group_wiki_page.py
-
6tildes/tildes/views/topic.py
@ -0,0 +1,24 @@ |
|||
"""Rename group_wiki_pages.slug to path |
|||
|
|||
Revision ID: f20ce28b1d5c |
|||
Revises: cddd7d7ed0ea |
|||
Create Date: 2019-08-10 04:40:04.657360 |
|||
|
|||
""" |
|||
from alembic import op |
|||
import sqlalchemy as sa |
|||
|
|||
|
|||
# revision identifiers, used by Alembic. |
|||
revision = "f20ce28b1d5c" |
|||
down_revision = "cddd7d7ed0ea" |
|||
branch_labels = None |
|||
depends_on = None |
|||
|
|||
|
|||
def upgrade(): |
|||
op.alter_column("group_wiki_pages", "slug", new_column_name="path") |
|||
|
|||
|
|||
def downgrade(): |
|||
op.alter_column("group_wiki_pages", "path", new_column_name="slug") |
Write
Preview
Loading…
Cancel
Save
Reference in new issue