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

30 lines
631 B
PHP
Raw Permalink Normal View History

2016-01-16 00:26:50 +00:00
<?php
use Illuminate\Support\Facades\Schema;
2016-01-16 00:26:50 +00:00
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(): void
2016-01-16 00:26:50 +00:00
{
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(): void
2016-01-16 00:26:50 +00:00
{
2016-01-23 20:42:25 +00:00
Schema::dropIfExists('locations');
2016-01-16 00:26:50 +00:00
}
}