landsandboat/sql/backups
Corey 09358ccf36
Add database tool (#820)
* Add database tool

-Deprecate migrations script
-Refactor give_items

Saves commit hash to version.conf when updating. On future updates, will
diff that hash against current hash to only import files that have
changed. Saves settings.

Optional args (both update options will also backup and migrate):
`python dbtool.py backup` will backup databse.
`python dbtool.py update` will check versions and only update if necessary.
`python dbtool.py update full` will do a full update.
`python dbtool.py migrate` will check and perform any needed migrations.

* Add setting for auto backup during CLI updates

Default is true

* Add option to create smaller backups

* Update client version when default is diff

Automatic by default on CLI, adjustable in settings.

* Fix ambiguous type in migrations
2020-07-21 19:12:56 +00:00
..
.gitignore Add database tool (#820) 2020-07-21 19:12:56 +00:00