From ed0f85856660ba4f487098b30e58a74f1af92da2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 18 Jul 2016 10:03:46 +0200 Subject: [PATCH] Increased size channels.options column (fixed datatype). --- db/migrate/20120101000010_create_ticket.rb | 2 +- db/migrate/20160718000001_update_channel.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20120101000010_create_ticket.rb b/db/migrate/20120101000010_create_ticket.rb index bf3a9f801..887ea5a72 100644 --- a/db/migrate/20120101000010_create_ticket.rb +++ b/db/migrate/20120101000010_create_ticket.rb @@ -342,7 +342,7 @@ class CreateTicket < ActiveRecord::Migration create_table :channels do |t| t.references :group, null: true t.column :area, :string, limit: 100, null: false - t.column :options, :string, limit: 500.kilobytes + 1, null: true + t.column :options, :text, limit: 500.kilobytes + 1, null: true t.column :active, :boolean, null: false, default: true t.column :preferences, :string, limit: 2000, null: true t.column :last_log_in, :text, limit: 500.kilobytes + 1, null: true diff --git a/db/migrate/20160718000001_update_channel.rb b/db/migrate/20160718000001_update_channel.rb index 382c4bb64..a0180867d 100644 --- a/db/migrate/20160718000001_update_channel.rb +++ b/db/migrate/20160718000001_update_channel.rb @@ -4,6 +4,6 @@ class UpdateChannel < ActiveRecord::Migration # return if it's a new setup return if !Setting.find_by(name: 'system_init_done') - change_column :channels, :options, :string, limit: 500.kilobytes + 1, null: true + change_column :channels, :options, :text, limit: 500.kilobytes + 1, null: true end end