Lephe
aa75ff09a1
This commit adds a forum tree YAML file (URL-based rather than an actual tree...) and the 'forums' and 'create-forums' commands for the master script. A page /admin/forums is also used to currently display the forum tree, although this will probably be turned into a full table with forum descriptions, and a form with edition capabilities.
29 lines
653 B
Python
29 lines
653 B
Python
"""add forum urls
|
|
|
|
Revision ID: 49427f8eb285
|
|
Revises: a7aac1469393
|
|
Create Date: 2019-09-02 21:16:06.971807
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '49427f8eb285'
|
|
down_revision = 'a7aac1469393'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('forum', sa.Column('url', sa.String(length=64), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('forum', 'url')
|
|
# ### end Alembic commands ###
|