""" The package description. """ import logging import peewee as pw import datetime as dt # Package information # =================== __version__ = "0.6.4" __project__ = "peewee_migrate" __author__ = "Kirill Klenov <horneds@gmail.com>" __license__ = "BSD" LOGGER = logging.getLogger(__name__) LOGGER.addHandler(logging.StreamHandler()) class MigrateHistory(pw.Model): """Presents the migrations in database.""" name = pw.CharField() migrated_at = pw.DateTimeField(default=dt.datetime.utcnow) def __unicode__(self): """String representation.""" return self.name from .router import Migrator, Router # noqa
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 653 B | 0644 |
|
__main__.py | File | 51 B | 0644 |
|
auto.py | File | 6.3 KB | 0644 |
|
cli.py | File | 2.66 KB | 0644 |
|
compat.py | File | 5.58 KB | 0644 |
|
migrator.py | File | 10.61 KB | 0644 |
|
router.py | File | 7.52 KB | 0644 |
|
template.txt | File | 1012 B | 0644 |
|