| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateSignsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('signs', function (Blueprint $table) {
- $table->id();
- $table->string('signable_type')->index()->comment('签名类型(表名)');
- $table->string('signable_id')->index()->comment('ID');
- $table->string('field')->nullable()->comment('字段名');
- $table->string('mark')->nullable()->comment('标记');
- $table->timestamp('created_at');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('signs');
- }
- }
|