hasTable('ex_deploy_options')) { $table = $schema->createTable('ex_deploy_options'); $table->addColumn('id', Types::BIGINT, [ 'notnull' => true, 'autoincrement' => true, ]); $table->addColumn('appid', Types::STRING, [ 'notnull' => true, 'length' => 32, ]); $table->addColumn('type', Types::STRING, [ // environment_variables/mounts/ports 'notnull' => true, 'length' => 32, ]); $table->addColumn('value', Types::JSON, [ 'notnull' => true, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['appid', 'type'], 'deploy_options__idx'); } return $schema; } }