Merged migrations.

This commit is contained in:
Martin Edenhofer 2015-09-26 15:56:55 +02:00
parent 14c95ce964
commit c6f160f14d
4 changed files with 18 additions and 53 deletions

View file

@ -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

View file

@ -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

View file

@ -1,8 +0,0 @@
class UpdateLogo < ActiveRecord::Migration
def up
return if !Setting.find_by(name: 'product_logo')
StaticAssets.read
StaticAssets.sync
end
end

View file

@ -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',