-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from dimagi/jls/inserted_at
Use inserted_at to determine which forms/cases need updating
- Loading branch information
Showing
13 changed files
with
491 additions
and
223 deletions.
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
28 changes: 28 additions & 0 deletions
28
migrations/versions/6f158d161ab6_add_pagination_mode_to_checkpoint.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,28 @@ | ||
"""Add pagination_mode to checkpoint | ||
Revision ID: 6f158d161ab6 | ||
Revises: a56c82a8d02e | ||
Create Date: 2021-01-25 15:13:45.996453 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
revision = '6f158d161ab6' | ||
down_revision = 'a56c82a8d02e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
|
||
def upgrade(): | ||
url = op.get_bind().engine.url | ||
collation = 'utf8_bin' if 'mysql' in url.drivername else None | ||
op.add_column( | ||
'commcare_export_runs', | ||
sa.Column('pagination_mode', sa.Unicode(255, collation=collation)) | ||
) | ||
|
||
def downgrade(): | ||
op.drop_column('commcare_export_runs', 'pagination_mode') |
Oops, something went wrong.