From 1e08afa8d4e0b251ba49df3ace68c1d0524b77b0 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Wed, 26 Apr 2023 17:59:20 +1000 Subject: [PATCH] FIX: require date db_timestamps_mover script (#21248) Before `pg` gem version 1.4.6 was loading `date` as dependency. Looks like version 1.5.1 is not doing that anymore. Update was done here: https://github.com/discourse/discourse/commit/d32709a74f715d9339fde730aa07901821a31fb1 Therefore, we have to load `date` explicitly. --- script/db_timestamps_mover.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/script/db_timestamps_mover.rb b/script/db_timestamps_mover.rb index 248f1893871..fc92d54b19b 100644 --- a/script/db_timestamps_mover.rb +++ b/script/db_timestamps_mover.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require "pg" +require "date" usage = <<-TEXT Commands: