Add auto-migrations to lasuite-drive #10

Merged
notplants merged 2 commits from pr-20260623-193109 into main 2026-06-23 19:57:54 +00:00

2 Commits

Author SHA1 Message Date
notplants 9e4c194783 create minio bucket automatically on startup (minio-initialize.sh)
continuous-integration/drone/pr Build is failing
Replace the one-shot minio-createbuckets service (which required a
manual 'abra app restart minio-createbuckets' that appeared to hang)
with a minio-initialize.sh config, ported from lasuite-docs. The minio
service entrypoint runs it in the background before starting minio; it
waits for minio to be ready and idempotently creates the
drive-media-storage bucket with versioning. Manual trigger:
'abra app cmd minio minio_initialize'.
2026-06-23 19:26:19 +00:00
notplants 0b64135f98 run migrations automatically on backend startup (AUTO_MIGRATIONS)
Add a migrate.sh config (ported from lasuite-docs) that the backend
entrypoint runs when AUTO_MIGRATIONS=true (default). It loads secrets,
waits for the DB, and idempotently applies pending migrations via
'migrate --check' then 'migrate --noinput'. The manual 'abra app cmd
backend migrate' now delegates to the same script.
2026-06-23 19:13:39 +00:00