hasTable('assistant_task_notif')) { $schemaChanged = true; $table = $schema->createTable('assistant_task_notif'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('ocp_task_id', Types::BIGINT, [ 'notnull' => true, ]); $table->addColumn('timestamp', Types::BIGINT, [ 'notnull' => true, 'unsigned' => true, ]); $table->setPrimaryKey(['id']); $table->addIndex(['ocp_task_id'], 'assistant_t_notif_tid'); } return $schemaChanged ? $schema : null; } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options * @return void */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } }