mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Auto migrating (#3741)
* base structure for updates * add base structure * add settingscheck * update docstring * only load plugins if needed * fix misstyping * run migration * check if there are open migrations * log open migration * add more logging * patch in fore reloading on unload * only run if database is ready * check every 5 minutes * remove non implemented feautres from desc * add command flag to makr if cmmand runs as worker * Add tests for migrations * factor mmigration plan into own function * Add print statements * add initial migrations for tests * remove last assertation * cleanup migrations after run * add flag to accept empty source code files * the flag is enough for reporting * fix test * do not run migrations on sqlite3 * make sure migrations don't fail if no plan ran * increase coverage for migration * spell fix * check for migrations daily * add a migration check after plugins are installed
This commit is contained in: