Commit 5d815c8e authored by TTS Tran Viet Anh's avatar TTS Tran Viet Anh

nullable image

parent 36712d8e
...@@ -18,7 +18,7 @@ public function up() ...@@ -18,7 +18,7 @@ public function up()
$table->id(); $table->id();
$table->string('title'); $table->string('title');
$table->text('content')->nullable()->default(null); $table->text('content')->nullable()->default(null);
$table->string('image'); $table->string('image')->nullable();
$table->unsignedInteger('user_id'); $table->unsignedInteger('user_id');
$table->unsignedInteger('post_category_id'); $table->unsignedInteger('post_category_id');
$table->date('publish_date')->nullable(); $table->date('publish_date')->nullable();
......
...@@ -17,7 +17,7 @@ public function up() ...@@ -17,7 +17,7 @@ public function up()
Schema::create('post_categories', function (Blueprint $table) { Schema::create('post_categories', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name'); $table->string('name');
$table->string('image'); $table->string('image')->nullable();
$table->unsignedInteger('parent_id')->nullable(); $table->unsignedInteger('parent_id')->nullable();
$table->unsignedTinyInteger('status')->default(PostCategory::STATUS_ENABLED); $table->unsignedTinyInteger('status')->default(PostCategory::STATUS_ENABLED);
$table->unsignedInteger('ordering'); $table->unsignedInteger('ordering');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment