summaryrefslogtreecommitdiff
path: root/migrations/versions/5f6c1515e239_add_approved_to_comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/versions/5f6c1515e239_add_approved_to_comments.py')
-rw-r--r--migrations/versions/5f6c1515e239_add_approved_to_comments.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/migrations/versions/5f6c1515e239_add_approved_to_comments.py b/migrations/versions/5f6c1515e239_add_approved_to_comments.py
new file mode 100644
index 0000000..7a0bff8
--- /dev/null
+++ b/migrations/versions/5f6c1515e239_add_approved_to_comments.py
@@ -0,0 +1,32 @@
+"""Add approved to comments
+
+Revision ID: 5f6c1515e239
+Revises: c2ca1cc5b130
+Create Date: 2024-02-05 11:13:50.341119
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '5f6c1515e239'
+down_revision = 'c2ca1cc5b130'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ with op.batch_alter_table('comments', schema=None) as batch_op:
+ batch_op.add_column(sa.Column('approved', sa.Boolean(), nullable=False))
+
+ # ### end Alembic commands ###
+
+
+def downgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ with op.batch_alter_table('comments', schema=None) as batch_op:
+ batch_op.drop_column('approved')
+
+ # ### end Alembic commands ###