]> git.lizzy.rs Git - cheatdb.git/commitdiff
Add migration to add hard/softdeps to packagepropertykeys
authorrubenwardy <rw@rubenwardy.com>
Fri, 25 May 2018 16:56:17 +0000 (17:56 +0100)
committerrubenwardy <rw@rubenwardy.com>
Fri, 25 May 2018 17:01:26 +0000 (18:01 +0100)
migrations/versions/3f4d7cd8401f_.py [new file with mode: 0644]

diff --git a/migrations/versions/3f4d7cd8401f_.py b/migrations/versions/3f4d7cd8401f_.py
new file mode 100644 (file)
index 0000000..0f17bf9
--- /dev/null
@@ -0,0 +1,30 @@
+"""empty message
+
+Revision ID: 3f4d7cd8401f
+Revises: 13113e5710da
+Create Date: 2018-05-25 17:53:13.215127
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '3f4d7cd8401f'
+down_revision = '13113e5710da'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    conn = op.get_bind()
+    conn.execute("ALTER TYPE packagepropertykey ADD VALUE 'harddeps'")
+    conn.execute("ALTER TYPE packagepropertykey ADD VALUE 'softdeps'")
+    # ### end Alembic commands ###
+
+
+def downgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    pass
+    # ### end Alembic commands ###