|
12 | 12 |
|
13 | 13 |
|
14 | 14 | # revision identifiers, used by Alembic. |
15 | | -revision: str = '9513acd42747' |
| 15 | +revision: str = "9513acd42747" |
16 | 16 | down_revision: Union[str, None] = None |
17 | 17 | branch_labels: Union[str, Sequence[str], None] = None |
18 | 18 | depends_on: Union[str, Sequence[str], None] = None |
19 | 19 |
|
20 | 20 |
|
21 | 21 | def upgrade() -> None: |
22 | 22 | # ### commands auto generated by Alembic - please adjust! ### |
23 | | - op.create_table('pastes', |
24 | | - sa.Column('pasteID', sa.String(length=4), nullable=False), |
25 | | - sa.Column('content', sa.Text(), nullable=True), |
26 | | - sa.Column('extension', sa.String(length=50), nullable=True), |
27 | | - sa.Column('s3_link', sa.String(length=500), nullable=True), |
28 | | - sa.Column('created_at', sa.DateTime(), nullable=True), |
29 | | - sa.Column('expiresat', sa.DateTime(), nullable=True), |
30 | | - sa.PrimaryKeyConstraint('pasteID') |
| 23 | + op.create_table( |
| 24 | + "pastes", |
| 25 | + sa.Column("pasteID", sa.String(length=4), nullable=False), |
| 26 | + sa.Column("content", sa.Text(), nullable=True), |
| 27 | + sa.Column("extension", sa.String(length=50), nullable=True), |
| 28 | + sa.Column("s3_link", sa.String(length=500), nullable=True), |
| 29 | + sa.Column("created_at", sa.DateTime(), nullable=True), |
| 30 | + sa.Column("expiresat", sa.DateTime(), nullable=True), |
| 31 | + sa.PrimaryKeyConstraint("pasteID"), |
31 | 32 | ) |
32 | 33 | # ### end Alembic commands ### |
33 | 34 |
|
34 | 35 |
|
35 | 36 | def downgrade() -> None: |
36 | 37 | # ### commands auto generated by Alembic - please adjust! ### |
37 | | - op.drop_table('pastes') |
| 38 | + op.drop_table("pastes") |
38 | 39 | # ### end Alembic commands ### |
0 commit comments