PHP 8.2.31
Preview: models.py Size: 466 B
/opt/imunify360/venv/lib/python3.11/site-packages/peewee_migrate/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"

Directory Contents

Dirs: 1 × Files: 12

Name Size Perms Modified Actions
- drwxr-xr-x 2026-05-27 11:04:31
Edit Download
11.85 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
6.61 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
146 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
18.41 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
466 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
0 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
12.21 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
1.78 KB lrw-r--r-- 2026-04-14 09:45:18
Edit Download
249 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
325 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
146 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download
78 B lrw-r--r-- 2026-04-14 09:45:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).