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.71 KB)
📄
cli.py
(6.44 KB)
📄
logs.py
(146 B)
📄
migrator.py
(15.36 KB)
📄
models.py
(465 B)
📄
py.typed
(0 B)
📄
router.py
(11.91 KB)
📄
template.py
(1.64 KB)
📄
types.py
(255 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: name = pw.CharField() migrated_at = pw.DateTimeField(default=dt.datetime.utcnow) def __unicode__(self) -> str: """String representation.""" return self.name # type: ignore[] MIGRATE_TABLE: Final = "migratehistory"
Upload File
Create Folder