Download Code/flask_project/migrations/versions/d4e8fac703a2_no1.py from zxy0307/Python_05_Flask: direct link, hf CLI and curl.
- Browser
- Download file 902 Bytes
-
https://huggingface.co/zxy0307/Python_05_Flask/resolve/main/Code/flask_project/migrations/versions/d4e8fac703a2_no1.py
- Command line
-
hf download hf://zxy0307/Python_05_Flask/Code/flask_project/migrations/versions/d4e8fac703a2_no1.py
-
curl -L -o d4e8fac703a2_no1.py https://huggingface.co/zxy0307/Python_05_Flask/resolve/main/Code/flask_project/migrations/versions/d4e8fac703a2_no1.py
902 Bytes
| """no1 | |
| Revision ID: d4e8fac703a2 | |
| Revises: | |
| Create Date: 2021-12-02 15:56:16.843947 | |
| """ | |
| from alembic import op | |
| import sqlalchemy as sa | |
| # revision identifiers, used by Alembic. | |
| revision = 'd4e8fac703a2' | |
| down_revision = None | |
| branch_labels = None | |
| depends_on = None | |
| def upgrade(): | |
| # ### commands auto generated by Alembic - please adjust! ### | |
| op.create_table('t_user', | |
| sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), | |
| sa.Column('name', sa.String(length=32), nullable=True), | |
| sa.Column('pwd', sa.String(length=32), nullable=True), | |
| sa.Column('age', sa.Integer(), nullable=True), | |
| sa.Column('city', sa.String(length=32), nullable=True), | |
| sa.PrimaryKeyConstraint('id') | |
| ) | |
| # ### end Alembic commands ### | |
| def downgrade(): | |
| # ### commands auto generated by Alembic - please adjust! ### | |
| op.drop_table('t_user') | |
| # ### end Alembic commands ### | |