add column title and order

This commit is contained in:
aprillio 2021-07-06 15:43:56 +07:00
parent 81003986f5
commit 7bb0a8aee4

View File

@ -16,6 +16,8 @@ class CreateLinksTable extends Migration
Schema::create('links', function (Blueprint $table) { Schema::create('links', function (Blueprint $table) {
$table->id(); $table->id();
$table->text('link'); $table->text('link');
$table->string('title');
$table->integer('order')->default(0);
$table->integer('click_number')->default(0); $table->integer('click_number')->default(0);
$table->enum('up_link', ['yes', 'no'])->default('no'); $table->enum('up_link', ['yes', 'no'])->default('no');
$table->unsignedbigInteger('user_id'); $table->unsignedbigInteger('user_id');