eventcally/migrations/versions/ed6bb2084bbd_.py
Daniel Grams 273b3fb072 Internal/analysis (#4)
* Codestyle Black

* Flake8

* Test coverage
2020-11-13 23:05:39 +01:00

36 lines
858 B
Python

"""empty message
Revision ID: ed6bb2084bbd
Revises: f1bc3fa623c7
Create Date: 2020-07-08 08:53:44.373606
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "ed6bb2084bbd"
down_revision = "f1bc3fa623c7"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"event",
sa.Column("previous_start_date", sa.DateTime(timezone=True), nullable=True),
)
op.add_column(
"eventdate", sa.Column("end", sa.DateTime(timezone=True), nullable=True)
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("eventdate", "end")
op.drop_column("event", "previous_start_date")
# ### end Alembic commands ###