Download app/models/migration.py from gitdeem/dt: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/models/migration.py
- Command line
-
hf download hf://spaces/gitdeem/dt/app/models/migration.py
-
curl -L -o migration.py https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/models/migration.py
364 Bytes
| from app import db | |
| class Migration(db.Model): | |
| """ 数据库迁移记录表 """ | |
| __tablename__ = 'migrations' | |
| id = db.Column(db.Integer, primary_key=True, autoincrement=True) | |
| migration = db.Column(db.String(255), nullable=False) # 迁移文件名 | |
| batch = db.Column(db.Integer, nullable=False) # 迁移批次号 |