|
1 | 1 | """empty message |
2 | 2 |
|
3 | | -Revision ID: cb42bf1aaf17 |
| 3 | +Revision ID: a72dfd73a091 |
4 | 4 | Revises: |
5 | | -Create Date: 2023-01-31 14:33:16.799110 |
| 5 | +Create Date: 2023-02-01 00:26:33.820602 |
6 | 6 |
|
7 | 7 | """ |
8 | 8 | import sqlalchemy as sa |
9 | 9 | from alembic import op |
10 | 10 |
|
11 | 11 |
|
12 | 12 | # revision identifiers, used by Alembic. |
13 | | -revision = "cb42bf1aaf17" |
| 13 | +revision = "a72dfd73a091" |
14 | 14 | down_revision = None |
15 | 15 | branch_labels = None |
16 | 16 | depends_on = None |
17 | 17 |
|
18 | 18 |
|
19 | 19 | def upgrade(): |
20 | 20 | # ### commands auto generated by Alembic - please adjust! ### |
| 21 | + op.create_table( |
| 22 | + "contact", |
| 23 | + sa.Column("id", sa.Integer(), nullable=False), |
| 24 | + sa.Column("created_date", sa.DateTime(), nullable=True), |
| 25 | + sa.Column("name", sa.String(length=100), nullable=True), |
| 26 | + sa.Column("email", sa.String(length=100), nullable=True), |
| 27 | + sa.Column("message", sa.String(length=1024), nullable=True), |
| 28 | + sa.PrimaryKeyConstraint("id"), |
| 29 | + ) |
21 | 30 | op.create_table( |
22 | 31 | "i18n_records", |
23 | 32 | sa.Column("id", sa.Integer(), nullable=False), |
@@ -81,4 +90,5 @@ def downgrade(): |
81 | 90 | op.drop_table("roles") |
82 | 91 | op.drop_table("pages") |
83 | 92 | op.drop_table("i18n_records") |
| 93 | + op.drop_table("contact") |
84 | 94 | # ### end Alembic commands ### |
0 commit comments