diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-25 17:56:17 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-25 18:01:26 +0100 |
| commit | f93394df753b7e2181f2a3eb3c1f3d45835ccc63 (patch) | |
| tree | 8153529bad5546e81e51cdbe42820a6205a08420 | |
| parent | 079775f5f6599163f3b40a4bc9ddb7669ba91ef7 (diff) | |
| download | cheatdb-f93394df753b7e2181f2a3eb3c1f3d45835ccc63.tar.xz | |
Add migration to add hard/softdeps to packagepropertykeys
| -rw-r--r-- | migrations/versions/3f4d7cd8401f_.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/migrations/versions/3f4d7cd8401f_.py b/migrations/versions/3f4d7cd8401f_.py new file mode 100644 index 0000000..0f17bf9 --- /dev/null +++ b/migrations/versions/3f4d7cd8401f_.py @@ -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 ### |
