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
b6ad9d77
Commit
b6ad9d77
authored
Jul 22, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration FK — table is 'academies' not 'organizations'
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
92001ac6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
2026_07_22_000001_create_facility_rent_payments_table.php
...2026_07_22_000001_create_facility_rent_payments_table.php
+1
-1
2026_07_22_000002_create_expenses_table.php
...se/migrations/2026_07_22_000002_create_expenses_table.php
+1
-1
2026_07_22_000003_add_expense_permissions.php
.../migrations/2026_07_22_000003_add_expense_permissions.php
+1
-1
No files found.
database/migrations/2026_07_22_000001_create_facility_rent_payments_table.php
View file @
b6ad9d77
...
...
@@ -12,7 +12,7 @@ public function up(): void
Schema
::
create
(
'facility_rent_payments'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
uuid
(
'uuid'
)
->
unique
();
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
organization
s'
);
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
academie
s'
);
$table
->
foreignId
(
'branch_id'
)
->
nullable
()
->
constrained
(
'branches'
);
$table
->
foreignId
(
'facility_id'
)
->
constrained
(
'facilities'
);
$table
->
string
(
'period'
,
7
);
// YYYY-MM
...
...
database/migrations/2026_07_22_000002_create_expenses_table.php
View file @
b6ad9d77
...
...
@@ -12,7 +12,7 @@ public function up(): void
Schema
::
create
(
'expenses'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
uuid
(
'uuid'
)
->
unique
();
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
organization
s'
);
$table
->
foreignId
(
'academy_id'
)
->
constrained
(
'
academie
s'
);
$table
->
foreignId
(
'branch_id'
)
->
nullable
()
->
constrained
(
'branches'
);
$table
->
string
(
'category'
,
30
);
$table
->
bigInteger
(
'amount'
);
...
...
database/migrations/2026_07_22_000003_add_expense_permissions.php
View file @
b6ad9d77
...
...
@@ -19,7 +19,7 @@ public function up(): void
}
// Also seed the 5050 account if missing
$academies
=
DB
::
table
(
'
organization
s'
)
->
pluck
(
'id'
);
$academies
=
DB
::
table
(
'
academie
s'
)
->
pluck
(
'id'
);
foreach
(
$academies
as
$academyId
)
{
DB
::
table
(
'financial_accounts'
)
->
insertOrIgnore
([
'academy_id'
=>
$academyId
,
...
...
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