Closed philhanna closed 1 year ago
Done.
migration/create_backup.py
creates a database $HOME/crossword_backup.db
migration/restore_from_backup.py
creates a database $HOME/crossword_new.db
The new database can be tested with a change to the dbfile
entry in .crossword.ini
:
[DEFAULT]
#
# dbfile - The fully qualified path to the crossword database.
# This is an SQLite 3 database.
# See https://www.sqlite.org/index.html
#
dbfile=/home/saspeh/crossword.db
#dbfile=/home/saspeh/crossword_new.db
#
# log_level - This must one of the following:
# CRITICAL
# ERROR
# WARNING
# INFO
# DEBUG
# NOTSET
# See https://docs.python.org/3.7/library/logging.html#levels
#
log_level=INFO
The JSON representation of grids and puzzles will change. Need to
pickle
format in a backup database.users
can just be copied from backup - no JSONwords
grids
:puzzles