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

use IlluminateSupportFacadesSchema;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateDatabaseMigrationsMigration;

class 
CreateArenaCardsTable extends Migration
{
    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('arena_cards', function (Blueprint $table) {
            
$table->increments('id');
            
$table->integer('battle');
            
$table->integer('user');
            
$table->integer('card');
            
$table->integer('health')->default(0);
            
$table->integer('moved')->default(0);
            
$table->integer('active')->default(0);
            
$table->timestamps();
        });
    }

    
/**
     * Reverse the migrations.
     *
     * @return void
     */
    
public function down()
    {
        
Schema::dropIfExists('arena_cards');
    }
}
Онлайн: 0
Реклама