mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
rename posterg → xamxam throughout: nginx conf, scripts, PHP source, docs
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
# Initialise the Post-ERG SQLite database from schema.sql.
|
||||
# Safe to run on existing databases — schema uses IF NOT EXISTS / INSERT OR IGNORE.
|
||||
# Usage:
|
||||
# scripts/migrate.sh # posterg.db (default)
|
||||
# scripts/migrate.sh # xamxam.db (default)
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
APP_DIR="$REPO_ROOT/app"
|
||||
SCHEMA="$APP_DIR/storage/schema.sql"
|
||||
PROD_DB="$APP_DIR/storage/posterg.db"
|
||||
PROD_DB="$APP_DIR/storage/xamxam.db"
|
||||
|
||||
init_db() {
|
||||
local db="$1"
|
||||
@@ -19,4 +19,4 @@ init_db() {
|
||||
echo " [$label] done"
|
||||
}
|
||||
|
||||
init_db "$PROD_DB" "posterg.db"
|
||||
init_db "$PROD_DB" "xamxam.db"
|
||||
|
||||
Reference in New Issue
Block a user