forked from pinterest/querybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Extend DataTableColumn type column length (pinterest#1121)
- Loading branch information
1 parent
9f10a39
commit a2ea03f
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
querybook/migrations/versions/27ed76f75106_extend_datatablecolumn_type_length.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,40 @@ | ||
"""Extend DataTableColumn type length | ||
Revision ID: 27ed76f75106 | ||
Revises: 63bde0162416 | ||
Create Date: 2023-01-05 09:43:06.639449 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "27ed76f75106" | ||
down_revision = "63bde0162416" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"data_table_column", | ||
"type", | ||
nullable=True, | ||
existing_type=sa.String(length=255), | ||
type_=sa.String(length=4096), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"data_table_column", | ||
"type", | ||
nullable=True, | ||
existing_type=sa.String(length=4096), | ||
type_=sa.String(length=255), | ||
) | ||
# ### 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
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