37 lines
1004 B
Python
37 lines
1004 B
Python
"""empty message
|
|
|
|
Revision ID: e1e8573b7298
|
|
Revises: a3b15766d9ab
|
|
Create Date: 2018-11-15 13:47:06.051522
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'e1e8573b7298'
|
|
down_revision = 'a3b15766d9ab'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('proposal_team_invite',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('date_created', sa.DateTime(), nullable=True),
|
|
sa.Column('proposal_id', sa.Integer(), nullable=False),
|
|
sa.Column('address', sa.String(length=255), nullable=False),
|
|
sa.Column('accepted', sa.Boolean()),
|
|
sa.ForeignKeyConstraint(['proposal_id'], ['proposal.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('proposal_team_invite')
|
|
# ### end Alembic commands ###
|