Add rank colours migration

This commit is contained in:
Repflez 2018-12-01 13:15:41 -07:00
commit 0703341524
No known key found for this signature in database
GPG key ID: D6948E99FDBD23BB

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Miiverse\DB;
class AddRankColours extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$schema = DB::getSchemaBuilder();
$schema->table('ranks', function (Blueprint $table) {
$table->string('rank_colour', 255)
->nullable()
->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$schema = DB::getSchemaBuilder();
$schema->table('ranks', function (Blueprint $table) {
$table->dropColumn('rank_colour');
});
}
}