1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/royalpack/database/alembic/versions/113c2444dad4_make_find_time_nullable.py

32 lines
858 B
Python
Raw Normal View History

2021-04-25 21:23:24 +00:00
"""Make find_time nullable
Revision ID: 113c2444dad4
Revises: e6b0d97063a1
Create Date: 2021-04-25 23:17:50.846179
"""
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '113c2444dad4'
down_revision = 'e6b0d97063a1'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('fiorygi_treasures', 'find_time',
existing_type=postgresql.TIMESTAMP(),
nullable=True)
2021-04-25 21:23:24 +00:00
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('fiorygi_treasures', 'find_time',
existing_type=postgresql.TIMESTAMP(),
nullable=False)
2021-04-25 21:23:24 +00:00
# ### end Alembic commands ###