"""Added first table Revision ID: 6e7b97c9696c Revises: Create Date: 2021-11-27 11:34:27.139781 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6e7b97c9696c' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('cookies', sa.Column('id', sa.BigInteger(), sa.Identity(always=False, start=100000), nullable=False), sa.Column('created_date', sa.DateTime(timezone=True), server_default=sa.text("TIMEZONE('utc', CURRENT_TIMESTAMP)"), nullable=True), sa.Column('modified_date', sa.DateTime(timezone=True), server_default=sa.text("TIMEZONE('utc', CURRENT_TIMESTAMP)"), nullable=True), sa.Column('name', sa.String(length=50), nullable=True), sa.Column('recipe_url', sa.String(length=255), nullable=True), sa.Column('sku', sa.String(length=55), nullable=True), sa.Column('qoh', sa.Integer(), nullable=True), sa.Column('unit_cost', sa.Numeric(precision=12, scale=2), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_cookies_name'), 'cookies', ['name'], unique=False) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_index(op.f('ix_cookies_name'), table_name='cookies') op.drop_table('cookies') # ### end Alembic commands ###