Increased size for business_hours.
This commit is contained in:
parent
7e8581909e
commit
8d28be378a
2 changed files with 10 additions and 1 deletions
|
@ -425,7 +425,7 @@ class CreateBase < ActiveRecord::Migration
|
||||||
create_table :calendars do |t|
|
create_table :calendars do |t|
|
||||||
t.string :name, limit: 250, null: true
|
t.string :name, limit: 250, null: true
|
||||||
t.string :timezone, 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.boolean :default, null: false, default: false
|
||||||
t.string :ical_url, limit: 500, null: true
|
t.string :ical_url, limit: 500, null: true
|
||||||
t.text :public_holidays, limit: 500.kilobytes + 1, null: true
|
t.text :public_holidays, limit: 500.kilobytes + 1, null: true
|
||||||
|
|
9
db/migrate/20160719000001_update_calendars.rb
Normal file
9
db/migrate/20160719000001_update_calendars.rb
Normal 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
|
Loading…
Reference in a new issue