migration = $factory; } public function getMigrations(Updater $updater) { $migration1 = $this->migration->db->createTable('locks', [ 'key' => 'VARCHAR(70) NOT NULL', 'value' => 'VARCHAR(255) NULL DEFAULT NULL', 'expiry_time' => 'BIGINT UNSIGNED DEFAULT 9999999999', ], 'key'); return array( $migration1, ); } public function doUpdate(Updater $updater) { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } }