* @copyright 2020 Copyright XEHub Corp. * @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL * @link https://xpressengine.io */ namespace Xpressengine\Migrations; use Illuminate\Database\Schema\Blueprint; use Schema; use Xpressengine\Support\Migration; /** * Class DraftMigration * * @category Migrations * @package Xpressengine\Migrations * @author XE Developers * @copyright 2020 Copyright XEHub Corp. * @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL * @link https://xpressengine.io */ class DraftMigration extends Migration { /** * Run when install the application. * * @return void */ public function install() { Schema::create('draft', function (Blueprint $table) { $table->engine = "InnoDB"; $table->string('id', '36')->comment('ID'); $table->string('user_id', '36')->comment('user ID'); $table->string('key')->comment('key'); $table->text('val')->comment('val'); $table->mediumText('etc')->comment('etc'); $table->boolean('is_auto')->default(false)->comment('is auto saved'); $table->timestamp('created_at')->nullable()->comment('created date'); $table->primary('id'); }); } }