From ab16f1afebc6213a8f1f19e589ca244c5d7d346a Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 17 Mar 2020 11:52:47 +0100 Subject: [PATCH] rename table gen_email -> alias --- .../versions/2020_031711_e9395fe234a4_.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 migrations/versions/2020_031711_e9395fe234a4_.py diff --git a/migrations/versions/2020_031711_e9395fe234a4_.py b/migrations/versions/2020_031711_e9395fe234a4_.py new file mode 100644 index 00000000..8e30a88c --- /dev/null +++ b/migrations/versions/2020_031711_e9395fe234a4_.py @@ -0,0 +1,25 @@ +"""empty message + +Revision ID: e9395fe234a4 +Revises: 6e061eb84167 +Create Date: 2020-03-17 11:37:33.157695 + +""" +import sqlalchemy_utils +from alembic import op +import sqlalchemy as sa +from sqlalchemy.dialects import postgresql + +# revision identifiers, used by Alembic. +revision = "e9395fe234a4" +down_revision = "6e061eb84167" +branch_labels = None +depends_on = None + + +def upgrade(): + op.rename_table("gen_email", "alias") + + +def downgrade(): + op.rename_table("alias", "gen_email")