mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-03 06:44:27 -04:00
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:
3
.github/workflows/build-release.yml
vendored
3
.github/workflows/build-release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user