|
@@ -24,8 +24,8 @@ class CreateWbwBlocksTable extends Migration
|
|
|
*/
|
|
*/
|
|
|
Schema::create('wbw_blocks', function (Blueprint $table) {
|
|
Schema::create('wbw_blocks', function (Blueprint $table) {
|
|
|
$table->bigInteger('id')->primary();
|
|
$table->bigInteger('id')->primary();
|
|
|
|
|
+ $table->string('uid',36)->uniqid()->index();
|
|
|
$table->string('parent_id',36)->nullable();
|
|
$table->string('parent_id',36)->nullable();
|
|
|
- $table->string('uid',36)->uniqid();
|
|
|
|
|
$table->string('block_uid',36)->nullable()->index();
|
|
$table->string('block_uid',36)->nullable()->index();
|
|
|
$table->bigInteger('block_id')->nullable()->index();
|
|
$table->bigInteger('block_id')->nullable()->index();
|
|
|
$table->bigInteger('channel_id')->nullable()->index();
|
|
$table->bigInteger('channel_id')->nullable()->index();
|
|
@@ -39,8 +39,8 @@ class CreateWbwBlocksTable extends Migration
|
|
|
$table->string("lang",16);
|
|
$table->string("lang",16);
|
|
|
$table->integer('status')->default(10);
|
|
$table->integer('status')->default(10);
|
|
|
|
|
|
|
|
- $table->bigInteger('create_time')->nullable()->index();
|
|
|
|
|
- $table->bigInteger('modify_time')->nullable()->index();
|
|
|
|
|
|
|
+ $table->bigInteger('create_time')->index();
|
|
|
|
|
+ $table->bigInteger('modify_time')->index();
|
|
|
|
|
|
|
|
$table->timestamp('created_at')->useCurrent();
|
|
$table->timestamp('created_at')->useCurrent();
|
|
|
$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate();
|
|
$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate();
|