F-003 fix: Sanitize SQL dump for safe dev use
This commit is contained in:
@@ -5,6 +5,7 @@ Current project layout:
|
||||
- `project/web/index/new/` — legacy PHP web module copied from production
|
||||
- `project/web/index/new/config/local.example.php` — versioned local config template
|
||||
- `project/web/index/new/config/local.php` — ignored local config with real values
|
||||
- `project/sql/db-25052026.sql` — local development SQL baseline
|
||||
- `project/sql/db-25052026.sql` — sanitized local development SQL baseline
|
||||
- `project/sql/private/` — optional ignored path for private raw dumps
|
||||
|
||||
ARNES core stays outside this folder.
|
||||
|
||||
25
project/sql/README.md
Normal file
25
project/sql/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# SQL baselines for local development
|
||||
|
||||
## Tracked baseline
|
||||
- `db-25052026.sql`
|
||||
- Purpose: safe local baseline for the legacy PHP module
|
||||
- Content: schema and synthetic seed data only
|
||||
- Safe for commit and push
|
||||
|
||||
## Private local data
|
||||
- If you need a private raw snapshot, keep it outside git.
|
||||
- Recommended local ignored path: `project/sql/private/`
|
||||
- Do not commit raw customer, order, or production-like data back to this repo.
|
||||
|
||||
## Local import
|
||||
Example:
|
||||
|
||||
```bash
|
||||
mysql -u root -p < project/sql/db-25052026.sql
|
||||
```
|
||||
|
||||
The sanitized baseline includes the tables used by:
|
||||
- `index.php`
|
||||
- `productos_bulk_update.php`
|
||||
- `productos_modificados.php`
|
||||
- `worker_bulk.php`
|
||||
1188008
project/sql/db-25052026.sql
1188008
project/sql/db-25052026.sql
File diff suppressed because one or more lines are too long
@@ -11,3 +11,4 @@ Setup:
|
||||
1. Review `config/README.md`.
|
||||
2. Fill `config/local.php` with local values.
|
||||
3. Import `project/sql/db-25052026.sql` into local MariaDB if needed.
|
||||
4. See `project/sql/README.md` for safe SQL baseline and private data handling.
|
||||
|
||||
Reference in New Issue
Block a user