hasTable('ex_task_processing')) { $table = $schema->createTable('ex_task_processing'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('app_id', Types::STRING, [ 'notnull' => true, 'length' => 32, ]); $table->addColumn('name', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('display_name', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('task_type', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['app_id', 'name', 'task_type'], 'task_processing_idx'); } return $schema; } }