From 928821fec639610c8dc79a2482a08513beb95bf4 Mon Sep 17 00:00:00 2001 From: Robur Date: Mon, 12 Jul 2021 13:42:13 +0000 Subject: [PATCH] fix migration 2021-07-12 --- bin/migrations/m20210712.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/migrations/m20210712.ml b/bin/migrations/m20210712.ml index 0420008..aabf984 100644 --- a/bin/migrations/m20210712.ml +++ b/bin/migrations/m20210712.ml @@ -166,6 +166,7 @@ let rollback _datadir (module Db : Caqti_blocking.CONNECTION) = results >>= fun () -> Db.exec drop_build () >>= fun () -> Db.exec rename_build () >>= fun () -> + Db.exec (Caqti_request.exec Caqti_type.unit "DROP INDEX idx_build_artifact_sha256") () >>= fun () -> Db.exec (Caqti_request.exec Caqti_type.unit "CREATE INDEX idx_build_job_start ON build(job, start_d DESC, start_ps DESC)") () >>= fun () ->