rverse2/database/2018_01_21_184732_migrate_to_service_tokens.php
2018-11-29 13:17:19 -07:00

44 lines
903 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Miiverse\DB;
class MigrateToServiceTokens extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$schema = DB::getSchemaBuilder();
$schema->table('console_auth', function (Blueprint $table) {
$table->dropColumn('friend_pid');
$table->string('short_id', 16);
$table->string('long_id', 64);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$schema = DB::getSchemaBuilder();
$schema->table('console_auth', function (Blueprint $table) {
$table->dropColumn('short_id');
$table->dropColumn('long_id');
$table->string('friend_pid', 16);
});
}
}