mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Initial Commit of Files
PufferPanel v0.9 (Laravel) is now Pterodactyl 1.0
This commit is contained in:
33
database/migrations/2015_11_28_021531_create_api_table.php
Normal file
33
database/migrations/2015_11_28_021531_create_api_table.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateApiTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('api', function (Blueprint $table) {
|
||||
$table->increments('id')->unsigned();
|
||||
$table->integer('user_id')->nullable()->unsigned();
|
||||
$table->char('key', 36)->unique();
|
||||
$table->json('allowed_ips')->nullable();
|
||||
$table->index('key');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('api');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user