feat: add initial schema migration for fresh database installs

- Create Migration_Initial_Schema that loads database.sql only on empty databases
- Existing installations skip this migration (tables already exist)
- Prevents duplicate column errors when migrations run on pre-populated schema
- Remove database.sql preloading from CI workflow - migrations handle schema setup
This commit is contained in:
Ollama
2026-03-17 14:55:39 +00:00
parent 1c09da8af2
commit fd6b668a79
2 changed files with 83 additions and 3 deletions

View File

@@ -179,9 +179,6 @@ jobs:
exit 1
}
- name: Initialize database
run: docker exec -i mysql mysql -u root -proot ospos < app/Database/database.sql
- name: Run PHPUnit tests
env:
CI_ENVIRONMENT: testing