Updates for Zammad 6

This commit is contained in:
Darren Clarke 2023-07-11 10:05:52 +00:00 committed by GitHub
parent 60b82f6fb4
commit 73fdb6e5d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 101 additions and 23 deletions

View file

@ -44,13 +44,17 @@ class PGP < ActiveRecord::Migration[5.2]
frontend: true
)
create_table :pgp_keypairs do |t|
t.string :fingerprint, limit: 250, null: false
t.binary :public_key, limit: 10.megabytes, null: false
t.binary :private_key, limit: 10.megabytes, null: true
t.string :private_key_secret, limit: 500, null: true
t.timestamps limit: 3, null: false
begin
create_table :pgp_keypairs do |t|
t.string :fingerprint, limit: 250, null: false
t.binary :public_key, limit: 10.megabytes, null: false
t.binary :private_key, limit: 10.megabytes, null: true
t.string :private_key_secret, limit: 500, null: true
t.timestamps limit: 3, null: false
end
add_index :pgp_keypairs, [:fingerprint], unique: true
rescue StandardError => e
puts "NOTICE: #{e.message}"
end
add_index :pgp_keypairs, [:fingerprint], unique: true
end
end