Add rank colours migration
This commit is contained in:
parent
0e6fac5cc5
commit
0703341524
1 changed files with 38 additions and 0 deletions
38
database/2018_12_01_131143_add_rank_colours.php
Normal file
38
database/2018_12_01_131143_add_rank_colours.php
Normal 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');
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue