From c6f160f14d6ce9ffa5e37b9134ef304908de7289 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 26 Sep 2015 15:56:55 +0200 Subject: [PATCH] Merged migrations. --- ...defaults_calendar_subscriptions_tickets.rb | 29 ------------------- .../20150628000001_translator_key_add.rb | 16 ---------- db/migrate/20150713000001_update_logo.rb | 8 ----- db/seeds.rb | 18 ++++++++++++ 4 files changed, 18 insertions(+), 53 deletions(-) delete mode 100644 db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb delete mode 100644 db/migrate/20150628000001_translator_key_add.rb delete mode 100644 db/migrate/20150713000001_update_logo.rb diff --git a/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb b/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb deleted file mode 100644 index b502fcbf7..000000000 --- a/db/migrate/20150626121711_defaults_calendar_subscriptions_tickets.rb +++ /dev/null @@ -1,29 +0,0 @@ -class DefaultsCalendarSubscriptionsTickets < ActiveRecord::Migration - def up - Setting.create_if_not_exists( - title: 'Default calendar Tickets subscriptions', - name: 'defaults_calendar_subscriptions_tickets', - area: 'Defaults::CalendarSubscriptions', - description: 'Defines the default calendar Tickets subscription settings.', - options: {}, - state: { - escalation: { - own: true, - not_assigned: false, - }, - new_open: { - own: true, - not_assigned: false, - }, - pending: { - own: true, - not_assigned: false, - } - }, - frontend: true - ) - end - - def down - end -end diff --git a/db/migrate/20150628000001_translator_key_add.rb b/db/migrate/20150628000001_translator_key_add.rb deleted file mode 100644 index 50e1457c9..000000000 --- a/db/migrate/20150628000001_translator_key_add.rb +++ /dev/null @@ -1,16 +0,0 @@ -class TranslatorKeyAdd < ActiveRecord::Migration - def up - Setting.create_if_not_exists( - title: 'Define translator identifier.', - name: 'translator_key', - area: 'i18n::translator_key', - description: 'Defines the translator identifier for contributions.', - options: {}, - state: '', - frontend: false - ) - end - - def down - end -end diff --git a/db/migrate/20150713000001_update_logo.rb b/db/migrate/20150713000001_update_logo.rb deleted file mode 100644 index db4db6203..000000000 --- a/db/migrate/20150713000001_update_logo.rb +++ /dev/null @@ -1,8 +0,0 @@ -class UpdateLogo < ActiveRecord::Migration - def up - - return if !Setting.find_by(name: 'product_logo') - StaticAssets.read - StaticAssets.sync - end -end diff --git a/db/seeds.rb b/db/seeds.rb index ad069ec92..7da246fd5 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1441,6 +1441,16 @@ Setting.create_if_not_exists( frontend: true ) +Setting.create_if_not_exists( + title: 'Define translator identifier.', + name: 'translator_key', + area: 'i18n::translator_key', + description: 'Defines the translator identifier for contributions.', + options: {}, + state: '', + frontend: false +) + signature = Signature.create_if_not_exists( id: 1, name: 'default', @@ -1936,6 +1946,14 @@ Network::Item::Comment.create( body: 'Some comment....', ) +Scheduler.create_or_update( + name: 'Process pending tickets', + method: 'Ticket.process_pending', + period: 60 * 15, + prio: 1, + active: true, +) + # install locales and translations Locale.create_if_not_exists( locale: 'en-us',