add auto-migration on backend startup

This commit is contained in:
notplants
2026-02-20 19:15:02 +00:00
parent 3647245ea4
commit dcd91e6a6f
5 changed files with 47 additions and 7 deletions

View File

@ -4,6 +4,7 @@ export ABRA_ENTRYPOINT_VERSION=v5
export NGINX_CONF_VERSION=v3
export PG_BACKUP_VERSION=v3
export MINIO_INITIALIZE_VERSION=v1
export MIGRATE_VERSION=v1
environment() {
# this exports all the secrets as environment variables
@ -11,8 +12,7 @@ environment() {
}
migrate() {
environment
python manage.py migrate --noinput
/migrate.sh
}
minio_initialize() {