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

use IlluminateSupportFacadesSchema;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateDatabaseMigrationsMigration;

class 
CreateCacheTable extends Migration
{
    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('cache', function (Blueprint $table) {
            
$table->string('key')->unique();
            
$table->mediumText('value');
            
$table->integer('expiration');
        });
    }

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