mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
"""Removed last timestamp columns
|
|
|
|
Revision ID: 5642232899cf
|
|
Revises: 0b7761d85555
|
|
Create Date: 2018-01-21 03:03:32.359959
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '5642232899cf'
|
|
down_revision = '0b7761d85555'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('authenticated_users', 'last_timestamp')
|
|
op.drop_column('unauthenticated_users', 'last_timestamp')
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('unauthenticated_users', sa.Column('last_timestamp', postgresql.TIMESTAMP(), server_default=sa.text('now()'), autoincrement=False, nullable=False))
|
|
op.add_column('authenticated_users', sa.Column('last_timestamp', postgresql.TIMESTAMP(), server_default=sa.text('now()'), autoincrement=False, nullable=False))
|
|
# ### end Alembic commands ###
|