Skip to content

Commit 49d0030

Browse files
committed
bug fix for migrations
1 parent eeca91b commit 49d0030

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

migrations/2020_05_27_104123_add_parameters_blog_etc_categories_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AddParametersBlogEtcCategoriesTable extends Migration
1414
public function up()
1515
{
1616
Schema::table('blog_etc_categories', function (Blueprint $table) {
17-
$table->integer('parent_id')->nullable();
17+
$table->integer('parent_id')->nullable()->default(0);
1818
$table->integer('lft')->nullable();
1919
$table->integer('rgt')->nullable();
2020
$table->integer('depth')->nullable();

src/BlogEtcServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public function boot()
3030
'2018_05_28_224023_create_blog_etc_posts_table.php',
3131
'2018_09_16_224023_add_author_and_url_blog_etc_posts_table.php',
3232
'2018_09_26_085711_add_short_desc_textrea_to_blog_etc.php',
33-
'2018_09_27_122627_create_blog_etc_uploaded_photos_table.php'
33+
'2018_09_27_122627_create_blog_etc_uploaded_photos_table.php',
34+
'2020_05_27_104123_add_parameters_blog_etc_categories_table'
3435
] as $file) {
3536

3637
$this->publishes([

0 commit comments

Comments
 (0)