hasTable('email'); if (!$exists) { $table = $this->table('email'); $table->addColumn('slug','string',["limit" => 50]) ->addColumn('email_header','text') ->addColumn('email_footer','text') ->addColumn('subject','text') ->addColumn('tag','text') ->addColumn('html','text') ->addColumn('created_at','date') ->addColumn('updated_at','datetime') ->addIndex(["slug"], ['unique' => true]) ->create(); } } public function down() { $this->table('email')->drop()->save(); } }