Skip to content

Commit

Permalink
undo hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Nov 11, 2024
1 parent a2bed36 commit 65d661d
Showing 1 changed file with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"""
from alembic import op
# import sqlalchemy as sa
# from sqlalchemy.dialects import postgresql
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql


# revision identifiers, used by Alembic.
Expand All @@ -18,19 +18,18 @@


def upgrade():
# op.create_table(
# "tracking_usage",
# sa.Column("id", sa.UnicodeText, primary_key=True),
# sa.Column("timestamp", sa.DateTime, server_default=sa.func.current_timestamp()),
# sa.Column("user_id", sa.UnicodeText, nullable=True),
# sa.Column("tracking_type", sa.UnicodeText, nullable=True),
# sa.Column("tracking_sub_type", sa.UnicodeText, nullable=True),
# sa.Column("extras", postgresql.JSONB(astext_type=sa.Text()), nullable=True),
# sa.Column("token_name", sa.UnicodeText, nullable=True),
# sa.Column("object_id", sa.UnicodeText, nullable=True),
# sa.Column("object_type", sa.UnicodeText, nullable=True),
# )
pass
op.create_table(
"tracking_usage",
sa.Column("id", sa.UnicodeText, primary_key=True),
sa.Column("timestamp", sa.DateTime, server_default=sa.func.current_timestamp()),
sa.Column("user_id", sa.UnicodeText, nullable=True),
sa.Column("tracking_type", sa.UnicodeText, nullable=True),
sa.Column("tracking_sub_type", sa.UnicodeText, nullable=True),
sa.Column("extras", postgresql.JSONB(astext_type=sa.Text()), nullable=True),
sa.Column("token_name", sa.UnicodeText, nullable=True),
sa.Column("object_id", sa.UnicodeText, nullable=True),
sa.Column("object_type", sa.UnicodeText, nullable=True),
)


def downgrade():
Expand Down

0 comments on commit 65d661d

Please sign in to comment.