Вход Регистрация
Файл: database/migrations/2018_03_12_180056_add_round_column_arena_table.php
Строк: 36
<?php

use IlluminateSupportFacadesSchema;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateDatabaseMigrationsMigration;

class 
AddRoundColumnArenaTable extends Migration
{
    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::table('arena_battles', function (Blueprint $table) {
            
$table->integer('round')->default(1);
            
$table->integer('user1_win')->default(0);
            
$table->integer('user2_win')->default(0);
        });
    }

    
/**
     * Reverse the migrations.
     *
     * @return void
     */
    
public function down()
    {
        
Schema::table('arena_battles', function (Blueprint $table) {
            
//
        
});
    }
}
Онлайн: 2
Реклама