Skip to content
Snippets Groups Projects
Commit a1497ba3 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'fix-migrate_new_notification_setting' into 'master'

Fix datetime format when migrating new notification settings on MySQL

Closes #15264 

See merge request !3733
parents 0554664e 70c9ceb7
No related branches found
No related tags found
1 merge request!3733Fix datetime format when migrating new notification settings on MySQL
Pipeline #
Loading
Loading
@@ -7,7 +7,7 @@
#
class MigrateNewNotificationSetting < ActiveRecord::Migration
def up
timestamp = Time.now
timestamp = Time.now.strftime('%F %T')
execute "INSERT INTO notification_settings ( user_id, source_id, source_type, level, created_at, updated_at ) SELECT user_id, source_id, source_type, notification_level, '#{timestamp}', '#{timestamp}' FROM members WHERE user_id IS NOT NULL"
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment