diff --git a/db/migrations/20240430112500_canvas_duration_fix_migration.php b/db/migrations/20240430112500_canvas_duration_fix_migration.php new file mode 100644 index 0000000000..a69cd0cf04 --- /dev/null +++ b/db/migrations/20240430112500_canvas_duration_fix_migration.php @@ -0,0 +1,37 @@ +. + */ + +use Phinx\Migration\AbstractMigration; + +/** + * Migration to fix the Canvas duration which mistakenly got added as 60s instead of 1s + * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace + */ +class CanvasDurationFixMigration extends AbstractMigration +{ + public function change(): void + { + $this->execute('UPDATE `module` SET `defaultDuration` = 1, `enabled` = 1 WHERE `moduleId` = :moduleId', [ + 'moduleId' => 'core-canvas', + ]); + } +}