SciQLop / tscat_gui

Time series catalogue - Graphical User Interface library
Other
4 stars 2 forks source link

TSCAT database migration with alembic #87

Closed pboettch closed 5 months ago

jeandet commented 5 months ago

@pboettch do we backup the db before migration? If not, maybe we should do a simple CP before any migration.

pboettch commented 5 months ago

No backup. In general a backup before each save with several copies might be a nice idea, no?

jeandet commented 5 months ago

Without doing it for each save, I would say that we can copy the db file before each migration with a name like backend.sqlite.pre-migration-backup-{datetime.now().isoformat} .