* @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 ConfigMigration * * @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 ConfigMigration extends Migration { /** * Run when install the application. * * @return void */ public function install() { Schema::create('config', function ($table) { $table->engine = "InnoDB"; $table->string('site_key', 50)->default('default')->comment('site key. for multi web site support.'); $table->string('name', 255)->comment('site name'); $table->text('vars')->default('')->comment('setting values. JSON data type.'); $table->primary(['site_key', 'name']); }); } }