|
14 | 14 |
|
15 | 15 | # revision identifiers, used by Alembic. |
16 | 16 | revision: str = "243190df5588" |
17 | | -down_revision: str | None = "166f3772fce7" |
| 17 | +down_revision: str | None = "2a6ea95342dc" |
18 | 18 | branch_labels: str | Sequence[str] | None = None |
19 | 19 | depends_on: str | Sequence[str] | None = None |
20 | 20 |
|
21 | 21 |
|
22 | 22 | def upgrade() -> None: |
23 | 23 | # ### commands auto generated by Alembic - please adjust! ### |
24 | 24 | 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") |
33 | 33 | ) |
34 | 34 | 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") |
44 | 44 | ) |
45 | 45 | 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") |
53 | 53 | ) |
54 | 54 | # ### end Alembic commands ### |
55 | 55 |
|
|
0 commit comments