Pixmenia phpMyAdmin Safe Update Workflow

This version is built around your real update style:
- You upload the full database through phpMyAdmin.
- The database is usually the same old database plus new columns/tables.
- You do not want customer data, credits, invoices, images, payments or legal records to reset.

What changed:
1. database.sql was converted to safe additive mode.
2. CREATE TABLE became CREATE TABLE IF NOT EXISTS.
3. DROP TABLE / TRUNCATE / DROP DATABASE were removed.
4. INSERT/REPLACE into protected customer tables were removed.
5. New guard tables are added with CREATE TABLE IF NOT EXISTS.
6. Admin page added: /admin/post_update_repair.php

Protected tables:
users, customers, images, generated_images, user_images, enhancements,
credit_transactions, payments, orders, invoices, legal_consents.

Correct workflow:
1. Open /admin/post_update_repair.php
2. Click Backup Protected Tables Before Update
3. Upload new files
4. Import the safe database.sql in phpMyAdmin
5. Open /admin/post_update_repair.php
6. Click Repair After phpMyAdmin Update

Important:
If you manually import an unsafe SQL that contains DROP/TRUNCATE/DELETE, phpMyAdmin will execute it.
This version makes the included database.sql safe for your workflow.
