From fce289c77e0d3623fe16bfe63fd750f45e2d5ecd Mon Sep 17 00:00:00 2001 From: David Lenwell Date: Fri, 1 Nov 2013 22:00:30 -0700 Subject: [PATCH] added alemic migration for relationship --- .../4f6f77184d45_really_added_user_cl.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 alembic/versions/4f6f77184d45_really_added_user_cl.py diff --git a/alembic/versions/4f6f77184d45_really_added_user_cl.py b/alembic/versions/4f6f77184d45_really_added_user_cl.py new file mode 100644 index 00000000..6afd935c --- /dev/null +++ b/alembic/versions/4f6f77184d45_really_added_user_cl.py @@ -0,0 +1,26 @@ +"""really added user - cloud relationship + +Revision ID: 4f6f77184d45 +Revises: 4288db006e5 +Create Date: 2013-10-31 21:09:16.469966 + +""" + +# revision identifiers, used by Alembic. +revision = '4f6f77184d45' +down_revision = '4288db006e5' + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + ### commands auto generated by Alembic - please adjust! ### + op.add_column('cloud', sa.Column('user_id', sa.Integer(), nullable=True)) + ### end Alembic commands ### + + +def downgrade(): + ### commands auto generated by Alembic - please adjust! ### + op.drop_column('cloud', 'user_id') + ### end Alembic commands ###