You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
676 B
PHTML
28 lines
676 B
PHTML
4 years ago
|
<?php
|
||
|
|
||
|
namespace Artmark\Content\Migrations;
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration as BasicMigration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
||
|
use Artmark\Content\Models\Content;
|
||
|
|
||
|
/**
|
||
|
* Description of Migration
|
||
|
*
|
||
|
* @author Andrey Pokidov <pokidov@e-traffic.ru>
|
||
|
*/
|
||
|
abstract class Migration extends BasicMigration
|
||
|
{
|
||
|
const MAXIMAL_TITLE_SIZE = 1024;
|
||
|
|
||
|
public function addContentFields(Blueprint $table)
|
||
|
{
|
||
|
$table->tinyInteger('status')->default(Content::STATUS_DRAFT);
|
||
|
$table->string('title', self::MAXIMAL_TITLE_SIZE);
|
||
|
$table->text('keywords');
|
||
|
$table->text('description');
|
||
|
$table->mediumText('body');
|
||
|
}
|
||
|
}
|