Commit e42b17a1 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix seed failure: remove non-existent 'category' column from service_catalog inserts

The service_catalog table does not have a 'category' column — the seed was
inserting into it causing deployment to fail with "Unknown column 'category'".
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 2b105af3
......@@ -51,8 +51,8 @@ return function (\App\Core\Database $db) {
foreach ($annualRates as [$code, $nameAr, $nameEn, $amount, $from, $to]) {
$db->query(
"INSERT INTO service_catalog (service_code, name_ar, name_en, category, base_amount, branch_id, effective_from, effective_to, is_active, created_at, updated_at)
VALUES (?, ?, ?, 'subscription', ?, NULL, ?, ?, 1, ?, ?)
"INSERT INTO service_catalog (service_code, name_ar, name_en, base_amount, branch_id, effective_from, effective_to, is_active, created_at, updated_at)
VALUES (?, ?, ?, ?, NULL, ?, ?, 1, ?, ?)
ON DUPLICATE KEY UPDATE
name_ar = VALUES(name_ar),
name_en = VALUES(name_en),
......@@ -82,8 +82,8 @@ return function (\App\Core\Database $db) {
foreach ($membershipPrices as [$code, $nameAr, $nameEn, $amount, $from, $to]) {
$db->query(
"INSERT INTO service_catalog (service_code, name_ar, name_en, category, base_amount, branch_id, effective_from, effective_to, is_active, created_at, updated_at)
VALUES (?, ?, ?, 'membership', ?, NULL, ?, ?, 1, ?, ?)
"INSERT INTO service_catalog (service_code, name_ar, name_en, base_amount, branch_id, effective_from, effective_to, is_active, created_at, updated_at)
VALUES (?, ?, ?, ?, NULL, ?, ?, 1, ?, ?)
ON DUPLICATE KEY UPDATE
name_ar = VALUES(name_ar),
name_en = VALUES(name_en),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment