misc_pterodactyl-panel/database/migrations/2016_01_23_200528_add_locations.php

29 lines
580 B
PHP
Raw Normal View History

2016-01-16 00:26:50 +00:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2016-01-23 20:42:25 +00:00
class AddLocations extends Migration
2016-01-16 00:26:50 +00:00
{
/**
* Run the migrations.
*/
public function up()
{
2016-01-23 20:42:25 +00:00
Schema::create('locations', function (Blueprint $table) {
2016-01-16 00:26:50 +00:00
$table->increments('id');
2016-01-23 20:42:25 +00:00
$table->string('short')->unique();
$table->string('long');
2016-01-16 00:26:50 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
2016-01-23 20:42:25 +00:00
Schema::dropIfExists('locations');
2016-01-16 00:26:50 +00:00
}
}