-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
850 additions
and
74 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"LATEST_POSTGRES_VERSION": "1be821cb7908", | ||
"LATEST_SQLITE_VERSION": "cb9a5f93f0aa" | ||
"LATEST_SQLITE_VERSION": "a382a0f4b1be" | ||
} |
37 changes: 37 additions & 0 deletions
37
migrations/sqlite_versions/2021-02-10_a382a0f4b1be_correct_privacy_id_type_of_hostedby.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,37 @@ | ||
"""Correct privacy_id type of HostedBy | ||
Revision ID: a382a0f4b1be | ||
Revises: cb9a5f93f0aa | ||
Create Date: 2021-02-10 16:20:41.425779+00:00 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
import pepys_import | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "a382a0f4b1be" | ||
down_revision = "cb9a5f93f0aa" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("HostedBy", schema=None) as batch_op: | ||
batch_op.alter_column( | ||
"privacy_id", | ||
existing_type=sa.INTEGER(), | ||
type_=pepys_import.utils.sqlalchemy_utils.UUIDType(length=16), | ||
existing_nullable=False, | ||
) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table("HostedBy", schema=None) as batch_op: | ||
batch_op.alter_column( | ||
"privacy_id", | ||
existing_type=pepys_import.utils.sqlalchemy_utils.UUIDType(length=16), | ||
type_=sa.INTEGER(), | ||
existing_nullable=False, | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ setuptools>=40.8.0 | |
Pygments>=2.6.1 | ||
geopy>=1.22 | ||
halo>=0.0.31 | ||
loguru | ||
loguru | ||
sqlalchemy-utils==0.36.8 |
Oops, something went wrong.