Файл: database/migrations/2018_02_24_104751_add_chests_columns.php
Строк: 31
<?php
use IlluminateSupportFacadesSchema;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateDatabaseMigrationsMigration;
class AddChestsColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->integer('legendary_chest')->default(0)->after('gold');
$table->integer('rare_chest')->default(0)->after('gold');
$table->integer('common_chest')->default(0)->after('gold');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
//
});
}
}