-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add schema for instigators table, keyed by selector 2/5 (#7185)
* add secondary index table migration to track schedule data migrations * schema migration stuff * fix sqlite migration * add schema for instigators table, keyed by selector * switch check for migration - fix mysql * fix mysql backcompat tests to start from clean slate * fix up comments, saving repository_selector_id
- Loading branch information
Showing
12 changed files
with
2,841 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ster/core/storage/schedules/sqlite/alembic/versions/c892b3fe0a9f_add_instigators_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""add instigators table | ||
Revision ID: c892b3fe0a9f | ||
Revises: 54666da3db5c | ||
Create Date: 2022-03-18 16:16:21.007430 | ||
""" | ||
from dagster.core.storage.migration.utils import create_instigators_table | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "c892b3fe0a9f" | ||
down_revision = "54666da3db5c" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
create_instigators_table() | ||
|
||
|
||
def downgrade(): | ||
pass |
Binary file added
BIN
+48 KB
...eneral_tests/compat_tests/snapshot_0_14_6_instigators_table/sqlite/schedules/schedules.db
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...raries/dagster-mysql/dagster_mysql/alembic/versions/5b467f7af3f6_add_instigators_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""add instigators table | ||
Revision ID: 5b467f7af3f6 | ||
Revises: d538c9496c01 | ||
Create Date: 2022-03-18 16:17:20.338259 | ||
""" | ||
from dagster.core.storage.migration.utils import create_instigators_table | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "5b467f7af3f6" | ||
down_revision = "d538c9496c01" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
create_instigators_table() | ||
|
||
|
||
def downgrade(): | ||
pass |
Oops, something went wrong.