1
1
mirror of https://github.com/pterodactyl/panel.git synced 2025-01-31 19:01:35 +01:00
Pterodactyl-Panel/database/migrations/2016_01_23_200528_add_locations.php

30 lines
631 B
PHP
Raw Permalink Normal View History

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