updates/create_post_type_table.php 1 location
|
@@ 114-119 (lines=6) @@
|
| 111 |
|
} |
| 112 |
|
); |
| 113 |
|
|
| 114 |
|
Schema::table('rainlab_blog_posts', function ($table) { |
| 115 |
|
$table->integer(PostType::TABLE_NAME . '_id')->unsigned()->nullable()->default(null); |
| 116 |
|
$table->foreign(PostType::TABLE_NAME . '_id')->references('id')->on(PostType::TABLE_NAME)->onDelete('cascade'); |
| 117 |
|
|
| 118 |
|
$table->json(PostType::TABLE_NAME. '_attributes')->nullable(); |
| 119 |
|
}); |
| 120 |
|
|
| 121 |
|
DB::table(PostType::TABLE_NAME)->insert( |
| 122 |
|
[ |
updates/create_taxonomies_tables.php 1 location
|
@@ 123-126 (lines=4) @@
|
| 120 |
|
} |
| 121 |
|
); |
| 122 |
|
|
| 123 |
|
Schema::table('rainlab_blog_posts', function ($table) { |
| 124 |
|
$table->integer(Series::TABLE_NAME . '_id')->unsigned()->nullable()->default(null); |
| 125 |
|
$table->foreign(Series::TABLE_NAME . '_id')->references('id')->on(Series::TABLE_NAME)->onDelete('cascade'); |
| 126 |
|
}); |
| 127 |
|
} |
| 128 |
|
} |
| 129 |
|
} |