|
|
@@ -1,30 +1,37 @@
|
|
|
-"""implmement comment at benevole and template
|
|
|
+"""implement comment at benevole and template
|
|
|
|
|
|
Revision ID: f058df5a266c
|
|
|
Revises: 8fee990845df
|
|
|
Create Date: 2024-08-18 17:45:45.047712
|
|
|
|
|
|
"""
|
|
|
+
|
|
|
from alembic import op
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
-revision = 'f058df5a266c'
|
|
|
-down_revision = '8fee990845df'
|
|
|
+revision = "f058df5a266c"
|
|
|
+down_revision = "8fee990845df"
|
|
|
branch_labels = None
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
- op.add_column('slot_templates', sa.Column('comment', sa.String(), nullable=False))
|
|
|
- op.add_column('volunteers', sa.Column('comment', sa.String(), nullable=False))
|
|
|
+ op.add_column(
|
|
|
+ "slot_templates",
|
|
|
+ sa.Column("comment", sa.String(), nullable=False, server_default=""),
|
|
|
+ )
|
|
|
+ op.add_column(
|
|
|
+ "volunteers",
|
|
|
+ sa.Column("comment", sa.String(), nullable=False, server_default=""),
|
|
|
+ )
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
- op.drop_column('volunteers', 'comment')
|
|
|
- op.drop_column('slot_templates', 'comment')
|
|
|
+ op.drop_column("volunteers", "comment")
|
|
|
+ op.drop_column("slot_templates", "comment")
|
|
|
# ### end Alembic commands ###
|