-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Fixed Postgres issues while creating new database with v1.3.0. #2249
- Loading branch information
1 parent
e06aad7
commit e2d0647
Showing
3 changed files
with
62 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
"""empty message | ||
Revision ID: cee6a710cb71 | ||
Revises: 195144da1f7e | ||
Create Date: 2023-09-20 23:11:15.678439 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'cee6a710cb71' | ||
down_revision = '195144da1f7e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('table_episodes', schema=None) as batch_op: | ||
batch_op.alter_column('file_size', | ||
existing_type=sa.INTEGER(), | ||
type_=sa.BigInteger(), | ||
existing_nullable=True, | ||
existing_server_default=sa.text('0')) | ||
|
||
with op.batch_alter_table('table_movies', schema=None) as batch_op: | ||
batch_op.alter_column('file_size', | ||
existing_type=sa.INTEGER(), | ||
type_=sa.BigInteger(), | ||
existing_nullable=True, | ||
existing_server_default=sa.text('0')) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('table_movies', schema=None) as batch_op: | ||
batch_op.alter_column('file_size', | ||
existing_type=sa.BigInteger(), | ||
type_=sa.INTEGER(), | ||
existing_nullable=True, | ||
existing_server_default=sa.text('0')) | ||
|
||
with op.batch_alter_table('table_episodes', schema=None) as batch_op: | ||
batch_op.alter_column('file_size', | ||
existing_type=sa.BigInteger(), | ||
type_=sa.INTEGER(), | ||
existing_nullable=True, | ||
existing_server_default=sa.text('0')) | ||
|
||
# ### end Alembic commands ### |
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