add setup.php — one-shot production database setup script

Creates wms + wms2 databases and all 54 tables from scratch using
CREATE TABLE IF NOT EXISTS. Reads credentials from app/config.php.
Safe to re-run (idempotent). CLI-only guard prevents web access.
Dynamic td_stock_<warehouse_id> tables are excluded — the app creates
them automatically on first warehouse use.

Run: php setup.php

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thanakorn S
2026-05-21 15:21:36 +07:00
co-authored by Claude Sonnet 4.6
parent 94032dd65b
commit fdf6292466
+1139
View File
File diff suppressed because it is too large Load Diff