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

use IlluminateDatabaseMigrationsMigration;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateSupportFacadesSchema;

return new class extends 
Migration {
    public function 
up(): void
    
{
        if (! 
Schema::hasTable('status')) {
            
Schema::create('status', function (Blueprint $table) {
                
$table->increments('id');
                
$table->integer('topoint');
                
$table->integer('point');
                
$table->string('name'50);
                
$table->string('color'10)->nullable();

                
$table->index('point');
                
$table->index('topoint');
            });
        }
    }

    public function 
down(): void
    
{
        
Schema::dropIfExists('status');
    }
};
Онлайн: 1
Реклама