<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAtomic extends Migration { public function up() { Schema::create('atomic', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->string('name', 100)->nullable()->comment(''); $table->integer('value')->nullable()->comment(''); $table->integer('expire')->nullable()->comment(''); $table->unique('name'); $table->index('expire'); }); } public function down() { } } 