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()
$table->id();
$table->string('title');
$table->text('content')->nullable()->default(null);
$table->string('image');
$table->string('image')->nullable();
$table->unsignedInteger('user_id');
$table->unsignedInteger('post_category_id');
$table->date('publish_date')->nullable();
......
......@@ -17,7 +17,7 @@ public function up()
Schema::create('post_categories', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('image');
$table->string('image')->nullable();
$table->unsignedInteger('parent_id')->nullable();
$table->unsignedTinyInteger('status')->default(PostCategory::STATUS_ENABLED);
$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