X7ROOT File Manager
Current Path:
/opt/imunify360/venv/lib/python3.11/site-packages/peewee_migrate
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
peewee_migrate
/
??
..
??
__init__.py
(146 B)
??
__main__.py
(78 B)
??
__pycache__
??
auto.py
(11.85 KB)
??
cli.py
(6.61 KB)
??
logs.py
(146 B)
??
migrator.py
(18.41 KB)
??
models.py
(466 B)
??
py.typed
(0 B)
??
router.py
(12.21 KB)
??
template.py
(1.78 KB)
??
types.py
(249 B)
??
utils.py
(325 B)
Editing: models.py
from __future__ import annotations import datetime as dt from typing import Final import peewee as pw class MigrateHistory(pw.Model): """Presents the migrations in database.""" id = pw.AutoField() # noqa: A003 name = pw.CharField() migrated_at = pw.DateTimeField(default=dt.datetime.utcnow) def __str__(self) -> str: """String representation.""" return self.name # type: ignore[] MIGRATE_TABLE: Final = "migratehistory"
Upload File
Create Folder