From bf36c61227fb21db6dce9cb648a45f9a6c6aa529 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 30 Mar 2018 12:45:09 +1100 Subject: [PATCH] fix: refresh matrix and head_matrix tables --- db/migrations/20180330_refresh_matrix.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrations/20180330_refresh_matrix.rb diff --git a/db/migrations/20180330_refresh_matrix.rb b/db/migrations/20180330_refresh_matrix.rb new file mode 100644 index 000000000..4547cd0b6 --- /dev/null +++ b/db/migrations/20180330_refresh_matrix.rb @@ -0,0 +1,12 @@ +Sequel.migration do + up do + from(:materialized_matrix).delete + from(:materialized_matrix).insert(from(:matrix).select_all) + from(:materialized_head_matrix).delete + from(:materialized_head_matrix).insert(from(:head_matrix).select_all) + end + + down do + + end +end