123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateUtmsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('utms', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string('origin');
- $table->string('destination');
- $table->enum('status',['enabled','disables']);
- $table->integer('hit');
- $table->string('referer');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('utms');
- }
- }
|