snipe-it/database/migrations/2013_11_16_103258_create_locations_table.php
2016-03-25 01:18:05 -07:00

37 lines
791 B
PHP
Executable file

<?php
use Illuminate\Database\Migrations\Migration;
class CreateLocationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('locations', function ($table) {
$table->increments('id');
$table->string('name')->nullable();
$table->string('city')->nullable();
$table->string('state',2)->nullable();
$table->string('country',2)->nullable();
$table->timestamps();
$table->integer('user_id')->nullable();
$table->engine = 'InnoDB';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('locations');
}
}