1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Preliminary implementation of master API keys

Part of #205
This commit is contained in:
Toby Zerner
2015-09-07 08:37:33 +09:30
parent f6e21b75e1
commit 84012ca2fd
3 changed files with 113 additions and 6 deletions

View File

@@ -0,0 +1,38 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateApiKeysTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->schema->create('api_keys', function (Blueprint $table) {
$table->string('id', 100)->primary();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->schema->drop('api_keys');
}
}