diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-20 19:24:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-20 19:24:13 +0100 |
| commit | 50d5c3c2f10725af8ebb6db47c209f7000abc8f4 (patch) | |
| tree | 3324d485ef7684189c50cfeb6e05ee0c7397601f /cli/app/sql/versions | |
| parent | d9ee2c97882ea5ace9c28ac6560ffa240daf9345 (diff) | |
remove foreignkey constraint on target_page_id. toggle popups. show list of popups, if a tile link is open/close popup
Diffstat (limited to 'cli/app/sql/versions')
| -rw-r--r-- | cli/app/sql/versions/202103201916_remove_foreign_key_constraint_from_.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cli/app/sql/versions/202103201916_remove_foreign_key_constraint_from_.py b/cli/app/sql/versions/202103201916_remove_foreign_key_constraint_from_.py new file mode 100644 index 0000000..ed19feb --- /dev/null +++ b/cli/app/sql/versions/202103201916_remove_foreign_key_constraint_from_.py @@ -0,0 +1,29 @@ +"""remove foreign key constraint from target_page_id + +Revision ID: 9b687880918d +Revises: 3f7df6bf63b8 +Create Date: 2021-03-20 19:16:21.582373 + +""" +from alembic import op +import sqlalchemy as sa +import sqlalchemy_utc + + +# revision identifiers, used by Alembic. +revision = '9b687880918d' +down_revision = '3f7df6bf63b8' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_constraint('tile_ibfk_3', 'tile', type_='foreignkey') + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.create_foreign_key('tile_ibfk_3', 'tile', 'page', ['target_page_id'], ['id']) + # ### end Alembic commands ### |
