From 48eeea165015cf862a9fb7f0a0c16aa9663fab43 Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 17 Mar 2020 10:57:55 +0100 Subject: [PATCH] rename forward_email table to contact --- .../versions/2020_031709_7744c5c16159_.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 migrations/versions/2020_031709_7744c5c16159_.py diff --git a/migrations/versions/2020_031709_7744c5c16159_.py b/migrations/versions/2020_031709_7744c5c16159_.py new file mode 100644 index 00000000..dfd810e4 --- /dev/null +++ b/migrations/versions/2020_031709_7744c5c16159_.py @@ -0,0 +1,25 @@ +"""empty message + +Revision ID: 7744c5c16159 +Revises: 9081f1a90939 +Create Date: 2020-03-17 09:52:10.662573 + +""" +import sqlalchemy_utils +from alembic import op +import sqlalchemy as sa +from sqlalchemy.dialects import postgresql + +# revision identifiers, used by Alembic. +revision = "7744c5c16159" +down_revision = "9081f1a90939" +branch_labels = None +depends_on = None + + +def upgrade(): + op.rename_table("forward_email", "contact") + + +def downgrade(): + op.rename_table("contact", "forward_email")