Pontoporeia
cb6394e119
add incremental migration runner to deploy recipe — execute whole SQL files (not semicolon-split), catch 'no such column' for idempotent re-runs, merge into migrate.sh
2026-05-19 00:08:06 +02:00
Pontoporeia
c1960d224b
fix deploy: multiple deploy recipe fixes — upload xamxam.conf before deploy-server.sh, sudo rsync for chown, migrate.sh via sqlite3, chmod WAL/SHM sidecar files, deploy-verify-permissions awk fix, .env sudo perms
2026-05-19 00:08:06 +02:00
Pontoporeia
72f7192156
feat(deploy): add deploy-verify-permissions recipe + upload/run deploy-server.sh before verification + run migrations in deploy
2026-05-19 00:08:06 +02:00
Pontoporeia
68e30abb56
fix: remove Post-ERG branding → XAMXAM; drop legacy posterg nginx symlink in deploy script; rename posterg.db → xamxam.db
2026-05-05 11:04:52 +02:00
Pontoporeia
c949cf9481
rename posterg → xamxam throughout: nginx conf, scripts, PHP source, docs
2026-05-05 11:04:52 +02:00
Théophile Gervreau-Mercier
7e26351f4b
refactor: remove test.db, use only posterg.db for all environments
...
- Simplified Database.php determineDatabasePath to always use posterg.db
- Removed test.db auto-detection based on php_sapi_name
- Removed test.db targets from justfile (migrate-test removed)
- Removed CreateTestDatabase.php fixture script
- Updated migrate.sh to only init posterg.db
- Updated setup-dev.sh to init posterg.db
- Updated run-tests.php (removed DB_ENV=test env var)
- Updated deploy-db to use posterg.db
- Removed test.db file
refactor: remove empty fixtures directory
2026-04-27 18:07:20 +02:00
Pontoporeia
dbaabaf8a0
merge all migrations into schema.sql
2026-04-24 23:03:49 +02:00
Pontoporeia
75f808bee4
feat: extract MediaController, wire into Dispatcher, delete media.php
2026-04-20 12:32:00 +02:00
Pontoporeia
6f04514aa2
fix: add structural guard for migration 008 in migrate.sh
2026-04-15 14:24:44 +02:00
Pontoporeia
a88e5562f8
fix(config): auto-route test.db locally, posterg.db on production
...
- config.php: getDatabasePath() detects php built-in CLI server
(php_sapi_name() === 'cli-server') and routes to test.db; all
other SAPIs (nginx/fpm) get posterg.db. DB_ENV env-var still
overrides either way.
- migrate.sh: auto-initialise the target DB from storage/schema.sql
when the file is absent or has no tables yet. Existing DBs with
data are left completely untouched (table_count check, no re-run
of schema on populated DB). Idempotent: safe to run repeatedly.
- justfile: serve still calls migrate (which now handles init too),
no DB_ENV prefix needed since sapi detection handles routing.
2026-04-01 15:55:12 +02:00
Pontoporeia
72d48c49c3
feat(db): auto-migrate both DBs on serve via scripts/migrate.sh
2026-04-01 15:55:12 +02:00