Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
L
laravel_training
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
TTS Tran Viet Anh
laravel_training
Commits
41396dbe
Commit
41396dbe
authored
Nov 08, 2022
by
TTS Tran Viet Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nullable parent_id
parent
540ee1db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
2022_10_31_100142_create_product_categories_table.php
...ons/2022_10_31_100142_create_product_categories_table.php
+1
-1
2022_10_31_100202_create_post_categories_table.php
...ations/2022_10_31_100202_create_post_categories_table.php
+1
-1
No files found.
database/migrations/2022_10_31_100142_create_product_categories_table.php
View file @
41396dbe
...
...
@@ -18,7 +18,7 @@ public function up()
$table
->
id
();
$table
->
string
(
'name'
);
$table
->
string
(
'image'
);
$table
->
unsignedInteger
(
'parent_id'
);
$table
->
unsignedInteger
(
'parent_id'
)
->
nullable
()
;
$table
->
unsignedTinyInteger
(
'status'
)
->
default
(
ProductCategory
::
STATUS_ENABLE
);
$table
->
unsignedInteger
(
'ordering'
);
$table
->
softDeletes
();
...
...
database/migrations/2022_10_31_100202_create_post_categories_table.php
View file @
41396dbe
...
...
@@ -18,7 +18,7 @@ public function up()
$table
->
id
();
$table
->
string
(
'name'
);
$table
->
string
(
'image'
);
$table
->
unsignedInteger
(
'parent_id'
);
$table
->
unsignedInteger
(
'parent_id'
)
->
nullable
()
;
$table
->
unsignedTinyInteger
(
'status'
)
->
default
(
PostCategory
::
STATUS_ENABLE
);
$table
->
unsignedInteger
(
'ordering'
);
$table
->
softDeletes
();
...
...
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