Skip to content

Commit 40041ad

Browse files
committed
update down revision to be blog posts
1 parent 8d0e267 commit 40041ad

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/alembic/versions/243190df5588_create_election_tables.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,42 @@
1414

1515
# revision identifiers, used by Alembic.
1616
revision: str = "243190df5588"
17-
down_revision: str | None = "166f3772fce7"
17+
down_revision: str | None = "2a6ea95342dc"
1818
branch_labels: str | Sequence[str] | None = None
1919
depends_on: str | Sequence[str] | None = None
2020

2121

2222
def upgrade() -> None:
2323
# ### commands auto generated by Alembic - please adjust! ###
2424
op.create_table("election",
25-
sa.Column("slug", sa.String(length=32), nullable=False),
26-
sa.Column("name", sa.String(length=32), nullable=False),
27-
sa.Column("officer_id", sa.String(length=32), nullable=False),
28-
sa.Column("type", sa.String(length=64), nullable=True),
29-
sa.Column("date", sa.DateTime(), nullable=False),
30-
sa.Column("end_date", sa.DateTime(), nullable=True),
31-
sa.Column("survey_link", sa.String(length=300), nullable=True),
32-
sa.PrimaryKeyConstraint("slug")
25+
sa.Column("slug", sa.String(length=32), nullable=False),
26+
sa.Column("name", sa.String(length=32), nullable=False),
27+
sa.Column("officer_id", sa.String(length=32), nullable=False),
28+
sa.Column("type", sa.String(length=64), nullable=True),
29+
sa.Column("date", sa.DateTime(), nullable=False),
30+
sa.Column("end_date", sa.DateTime(), nullable=True),
31+
sa.Column("survey_link", sa.String(length=300), nullable=True),
32+
sa.PrimaryKeyConstraint("slug")
3333
)
3434
op.create_table("election_nominee",
35-
sa.Column("computing_id", sa.String(length=32), nullable=False),
36-
sa.Column("full_name", sa.String(length=64), nullable=False),
37-
sa.Column("facebook", sa.String(length=64), nullable=True),
38-
sa.Column("instagram", sa.String(length=64), nullable=True),
39-
sa.Column("email", sa.String(length=64), nullable=True),
40-
sa.Column("discord", sa.String(length=32), nullable=True),
41-
sa.Column("discord_id", sa.String(length=18), nullable=True),
42-
sa.Column("discord_username", sa.String(length=32), nullable=True),
43-
sa.PrimaryKeyConstraint("computing_id")
35+
sa.Column("computing_id", sa.String(length=32), nullable=False),
36+
sa.Column("full_name", sa.String(length=64), nullable=False),
37+
sa.Column("facebook", sa.String(length=64), nullable=True),
38+
sa.Column("instagram", sa.String(length=64), nullable=True),
39+
sa.Column("email", sa.String(length=64), nullable=True),
40+
sa.Column("discord", sa.String(length=32), nullable=True),
41+
sa.Column("discord_id", sa.String(length=18), nullable=True),
42+
sa.Column("discord_username", sa.String(length=32), nullable=True),
43+
sa.PrimaryKeyConstraint("computing_id")
4444
)
4545
op.create_table("nominee_application",
46-
sa.Column("computing_id", sa.String(length=32), nullable=False),
47-
sa.Column("nominee_election", sa.String(length=32), nullable=False),
48-
sa.Column("speech", sa.Text(), nullable=True),
49-
sa.Column("position", sa.String(length=64), nullable=False),
50-
sa.ForeignKeyConstraint(["computing_id"], ["election_nominee.computing_id"], ),
51-
sa.ForeignKeyConstraint(["nominee_election"], ["election.slug"], ),
52-
sa.PrimaryKeyConstraint("computing_id", "nominee_election")
46+
sa.Column("computing_id", sa.String(length=32), nullable=False),
47+
sa.Column("nominee_election", sa.String(length=32), nullable=False),
48+
sa.Column("speech", sa.Text(), nullable=True),
49+
sa.Column("position", sa.String(length=64), nullable=False),
50+
sa.ForeignKeyConstraint(["computing_id"], ["election_nominee.computing_id"], ),
51+
sa.ForeignKeyConstraint(["nominee_election"], ["election.slug"], ),
52+
sa.PrimaryKeyConstraint("computing_id", "nominee_election")
5353
)
5454
# ### end Alembic commands ###
5555

0 commit comments

Comments
 (0)