Fixes #3548 - Can't add (or run) DataPrivacyTask if the to remove user has too many ticket relations.
This commit is contained in:
parent
2858a85050
commit
8b6a00d73f
2 changed files with 13 additions and 1 deletions
|
@ -741,7 +741,7 @@ class CreateBase < ActiveRecord::Migration[4.2]
|
||||||
create_table :data_privacy_tasks do |t|
|
create_table :data_privacy_tasks do |t|
|
||||||
t.column :state, :string, limit: 150, default: 'in process', null: true
|
t.column :state, :string, limit: 150, default: 'in process', null: true
|
||||||
t.references :deletable, polymorphic: true
|
t.references :deletable, polymorphic: true
|
||||||
t.string :preferences, limit: 8000, null: true
|
t.text :preferences
|
||||||
t.column :updated_by_id, :integer, null: false
|
t.column :updated_by_id, :integer, null: false
|
||||||
t.column :created_by_id, :integer, null: false
|
t.column :created_by_id, :integer, null: false
|
||||||
t.timestamps limit: 3, null: false
|
t.timestamps limit: 3, null: false
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# https://github.com/zammad/zammad/issues/3548
|
||||||
|
class Issue3548DataPrivacyTaskPreferencesToText < ActiveRecord::Migration[5.2]
|
||||||
|
def up
|
||||||
|
return if !Setting.exists?(name: 'system_init_done')
|
||||||
|
|
||||||
|
change_table :data_privacy_tasks do |t|
|
||||||
|
t.change :preferences, :text
|
||||||
|
end
|
||||||
|
|
||||||
|
DataPrivacyTask.reset_column_information
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue