123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateCriteriaTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('criteria', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string('title')->nullable();
- $table->integer('module')->nullable();
- $table->string('type')->nullable();
- $table->float('max')->nullable();
- $table->string('note')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('criteria');
- }
- }
|