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
cf73fb82
Commit
cf73fb82
authored
Jul 16, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix governorate migration: skip if column already exists
Co-Authored-By:
Claude Sonnet 4.6
<
noreply@anthropic.com
>
parent
0504e7d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
2024_01_01_000080_add_governorate_to_people_table.php
...ons/2024_01_01_000080_add_governorate_to_people_table.php
+5
-3
No files found.
database/migrations/2024_01_01_000080_add_governorate_to_people_table.php
View file @
cf73fb82
...
...
@@ -8,9 +8,11 @@
{
public
function
up
()
:
void
{
Schema
::
table
(
'people'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'governorate'
,
100
)
->
nullable
()
->
after
(
'national_id'
);
});
if
(
!
Schema
::
hasColumn
(
'people'
,
'governorate'
))
{
Schema
::
table
(
'people'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'governorate'
,
100
)
->
nullable
()
->
after
(
'national_id'
);
});
}
}
public
function
down
()
:
void
...
...
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