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

use IlluminateSupportFacadesSchema;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateDatabaseMigrationsMigration;

class 
CreateForumPostsTable extends Migration
{
    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('forum_posts', function (Blueprint $table) {
            
$table->increments('id');
            
$table->integer('topic');
            
$table->integer('author');
            
$table->text('text');
            
$table->string('type')->default('post');
            
$table->timestamps();
        });
    }

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