Commit 6e65d1c7 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix seed failures: name_en column is NOT NULL, use empty string

The chart_of_accounts.name_en column is VARCHAR(200) NOT NULL.
Both seeds were passing null which caused integrity constraint violations.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 023b400f
......@@ -614,7 +614,7 @@ return function (Database $db): void {
$id = $db->insert("chart_of_accounts", [
"account_code" => $code,
"name_ar" => $nameAr,
"name_en" => null,
"name_en" => "",
"account_type" => $type,
"account_nature" => $nature,
"parent_id" => $parentId,
......
......@@ -42,7 +42,7 @@ return function (Database $db): void {
return $db->insert('chart_of_accounts', [
'account_code' => $code,
'name_ar' => $nameAr,
'name_en' => null,
'name_en' => '',
'account_type' => $type,
'account_nature' => $nature,
'parent_id' => $parentId,
......
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