summaryrefslogtreecommitdiff
path: root/migrations/versions/5f6c1515e239_add_approved_to_comments.py
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-05 12:53:45 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-05 12:53:45 -0600
commitc96e88537de14bc17988d33cc25b77a52d7af6b4 (patch)
treeee53f22fb98903bfe38be3ae636b69a80e169b47 /migrations/versions/5f6c1515e239_add_approved_to_comments.py
parent3fa4434d417c4bc85916ed79cc7bbb324b2768ac (diff)
Add reply model
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 ###