added creator and editor to entries

This commit is contained in:
2022-09-29 17:18:55 +02:00
parent 5e83c7258b
commit f61e5ef81f
5 changed files with 41 additions and 11 deletions

View File

@@ -0,0 +1,28 @@
"""init
Revision ID: 91bc91a0dfc5
Revises: 6da5ee6785ff
Create Date: 2022-09-29 13:47:36.479683
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '91bc91a0dfc5'
down_revision = '6da5ee6785ff'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('entries', sa.Column('creator', sa.Unicode(length=50), nullable=True))
op.add_column('entries', sa.Column('editor', sa.Unicode(length=50), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('entries', 'editor')
op.drop_column('entries', 'creator')
# ### end Alembic commands ###