Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
El-Captain Sports Management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
El-Captain Sports Management
Commits
c0f3c428
Commit
c0f3c428
authored
Jun 30, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration FK reference: organizations → academies
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
c314a847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
2024_01_01_000047_create_receipt_templates_and_branch_settings.php
...1_000047_create_receipt_templates_and_branch_settings.php
+2
-2
No files found.
database/migrations/2024_01_01_000047_create_receipt_templates_and_branch_settings.php
View file @
c0f3c428
...
@@ -12,7 +12,7 @@ public function up(): void
...
@@ -12,7 +12,7 @@ public function up(): void
// Branch-level settings (overrides academy settings per branch)
// Branch-level settings (overrides academy settings per branch)
Schema
::
create
(
'branch_settings'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'branch_settings'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
id
();
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
organization
s'
);
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
academie
s'
);
$table
->
foreignId
(
'branch_id'
)
->
constrained
(
'branches'
);
$table
->
foreignId
(
'branch_id'
)
->
constrained
(
'branches'
);
$table
->
string
(
'key'
,
100
);
$table
->
string
(
'key'
,
100
);
$table
->
text
(
'value'
)
->
nullable
();
$table
->
text
(
'value'
)
->
nullable
();
...
@@ -26,7 +26,7 @@ public function up(): void
...
@@ -26,7 +26,7 @@ public function up(): void
// Receipt templates — configurable per branch
// Receipt templates — configurable per branch
Schema
::
create
(
'receipt_templates'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'receipt_templates'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
id
();
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
organization
s'
);
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
academie
s'
);
$table
->
foreignId
(
'branch_id'
)
->
nullable
()
->
constrained
(
'branches'
);
$table
->
foreignId
(
'branch_id'
)
->
nullable
()
->
constrained
(
'branches'
);
$table
->
string
(
'name'
,
100
);
$table
->
string
(
'name'
,
100
);
$table
->
string
(
'name_ar'
,
100
);
$table
->
string
(
'name_ar'
,
100
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment