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

declare(strict_types=1);

use 
IlluminateDatabaseMigrationsMigration;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateSupportFacadesSchema;

final class 
CreatePaidAdvertsTable extends Migration
{
    
/**
     * Migrate Up.
     */
    
public function up(): void
    
{
        if (! 
Schema::hasTable('paid_adverts')) {
            
Schema::create('paid_adverts', function (Blueprint $table) {
                
$table->increments('id');
                
$table->integer('user_id');
                
$table->string('place'20);
                
$table->string('site'100);
                
$table->json('names');
                
$table->string('color'10)->nullable();
                
$table->boolean('bold')->default(false);
                
$table->string('comment')->nullable();
                
$table->integer('created_at');
                
$table->integer('deleted_at')->nullable();
            });
        }
    }

    
/**
     * Migrate Down.
     */
    
public function down(): void
    
{
        
Schema::dropIfExists('paid_adverts');
    }
}
Онлайн: 0
Реклама