Increased size for business_hours.

This commit is contained in:
Martin Edenhofer 2016-07-19 22:15:49 +02:00
parent 7e8581909e
commit 8d28be378a
2 changed files with 10 additions and 1 deletions

View file

@ -425,7 +425,7 @@ class CreateBase < ActiveRecord::Migration
create_table :calendars do |t|
t.string :name, limit: 250, null: true
t.string :timezone, limit: 250, null: true
t.string :business_hours, limit: 1200, null: true
t.string :business_hours, limit: 3000, null: true
t.boolean :default, null: false, default: false
t.string :ical_url, limit: 500, null: true
t.text :public_holidays, limit: 500.kilobytes + 1, null: true

View file

@ -0,0 +1,9 @@
class UpdateCalendars < ActiveRecord::Migration
def up
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
change_column :calendars, :business_hours, :string, limit: 3000, null: true
end
end