forked from polka_billy/porridger
Change rating and dispose endpoints fixed
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
"""date_of_chose->date_of_choice; category became Array
|
||||
|
||||
Revision ID: 0e97e2f703e8
|
||||
Revises: a991606e0a35
|
||||
Create Date: 2023-08-08 21:43:00.992516
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0e97e2f703e8'
|
||||
down_revision = 'a991606e0a35'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('trashboxes', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('date_of_choice', sa.Date(), nullable=True))
|
||||
# batch_op.create_foreign_key(None, 'users', ['user_id'], ['id'])
|
||||
batch_op.drop_column('date_of_chose')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('trashboxes', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('date_of_chose', sa.DATE(), nullable=True))
|
||||
# batch_op.drop_constraint(None, type_='foreignkey')
|
||||
batch_op.drop_column('date_of_choice')
|
||||
|
||||
# ### end Alembic commands ###
|
@ -0,0 +1,36 @@
|
||||
"""latitude, longtitude type changed to float (before we used integer); category-> categories
|
||||
|
||||
Revision ID: a0206e2bf259
|
||||
Revises: 0e97e2f703e8
|
||||
Create Date: 2023-08-08 22:01:10.937018
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'a0206e2bf259'
|
||||
down_revision = '0e97e2f703e8'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('trashboxes', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('categories', sa.String(), nullable=True))
|
||||
# batch_op.create_foreign_key(None, 'users', ['user_id'], ['id'])
|
||||
batch_op.drop_column('category')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('trashboxes', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('category', sa.VARCHAR(), nullable=True))
|
||||
# batch_op.drop_constraint(None, type_='foreignkey')
|
||||
batch_op.drop_column('categories')
|
||||
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user