|
| 1 | +"""empty message |
| 2 | +
|
| 3 | +Revision ID: 4279c2ac565b |
| 4 | +Revises: 2c7ff9781032 |
| 5 | +Create Date: 2019-06-28 09:37:30.961354 |
| 6 | +
|
| 7 | +""" |
| 8 | + |
| 9 | +from alembic import op |
| 10 | +import sqlalchemy as sa |
| 11 | +import sqlalchemy_utils |
| 12 | + |
| 13 | + |
| 14 | +# revision identifiers, used by Alembic. |
| 15 | +revision = '4279c2ac565b' |
| 16 | +down_revision = '2c7ff9781032' |
| 17 | + |
| 18 | + |
| 19 | +def upgrade(): |
| 20 | + # ### commands auto generated by Alembic - please adjust! ### |
| 21 | + op.add_column('users', sa.Column('billing_additional_info', sa.String(), nullable=True)) |
| 22 | + op.add_column('users', sa.Column('billing_address', sa.String(), nullable=True)) |
| 23 | + op.add_column('users', sa.Column('billing_city', sa.String(), nullable=True)) |
| 24 | + op.add_column('users', sa.Column('billing_contact_name', sa.String(), nullable=True)) |
| 25 | + op.add_column('users', sa.Column('billing_country', sa.String(), nullable=True)) |
| 26 | + op.add_column('users', sa.Column('billing_phone', sa.String(), nullable=True)) |
| 27 | + op.add_column('users', sa.Column('billing_tax_info', sa.String(), nullable=True)) |
| 28 | + op.add_column('users', sa.Column('billing_zip_code', sa.String(), nullable=True)) |
| 29 | + op.add_column('users', sa.Column('company', sa.String(), nullable=True)) |
| 30 | + # ### end Alembic commands ### |
| 31 | + |
| 32 | + |
| 33 | +def downgrade(): |
| 34 | + # ### commands auto generated by Alembic - please adjust! ### |
| 35 | + op.drop_column('users', 'company') |
| 36 | + op.drop_column('users', 'billing_zip_code') |
| 37 | + op.drop_column('users', 'billing_tax_info') |
| 38 | + op.drop_column('users', 'billing_phone') |
| 39 | + op.drop_column('users', 'billing_country') |
| 40 | + op.drop_column('users', 'billing_contact_name') |
| 41 | + op.drop_column('users', 'billing_city') |
| 42 | + op.drop_column('users', 'billing_address') |
| 43 | + op.drop_column('users', 'billing_additional_info') |
| 44 | + # ### end Alembic commands ### |
0 commit comments