fix(settings): fee only from fee_service_charge_percentage; deploy:tenant

Remove service_charge_percentage alias and config/fee.php fallback (empty → 0).
Move code-managed Montzar/price runtime keys to can_edit=1 in deploy SQL.
Add settings:deploy and deploy:tenant artisan commands for server deploy.
Advanced admin settings merge runtime keys from local DB; block manual edits.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 19:55:29 +03:30
co-authored by Cursor
parent 5b2ed2e5fc
commit 027170a33f
12 changed files with 353 additions and 142 deletions
+7 -10
View File
@@ -38,15 +38,13 @@ mysql -h "$DB_HOST" -P "$DB_PORT" -u "$DB_USERNAME" -p"$DB_PASSWORD" "$DB_DATABA
# ۳ status — ۱۰ تا همه Yes
php artisan migrate:status
# ۴ migrate
php artisan migrate
# ۵ settings
mysql -h "$DB_HOST" -P "$DB_PORT" -u "$DB_USERNAME" -p"$DB_PASSWORD" "$DB_DATABASE" \
< database/sql/deploy_settings_const.sql
# ۴ migrate + ۵ settings (یک دستور)
php artisan deploy:tenant
```
**یا:** `bash database/sql/run_deploy_existing_db.sh`
**یا جدا:** `php artisan migrate --force` سپس `php artisan settings:deploy`
**یا:** `bash database/sql/run_deploy_tenant.sh`
### چک بعد از مرحله ۲
@@ -75,8 +73,7 @@ mysql -h 127.0.0.1 -P 3030 -u root -p soroushgold \
php artisan migrate:status
php artisan migrate
mysql -h 127.0.0.1 -P 3030 -u root -p soroushgold \
< database/sql/deploy_settings_const.sql
php artisan settings:deploy
```
---
@@ -87,7 +84,7 @@ mysql -h 127.0.0.1 -P 3030 -u root -p soroushgold \
mysql ... < database/schema/mysql-schema.sql.reference
mysql ... < database/sql/baseline_migrations.sql
php artisan migrate
mysql ... < database/sql/deploy_settings_const.sql
php artisan settings:deploy
```
---