use text instead of string for db columns
This commit is contained in:
parent
8e0c33ed13
commit
895efdfbcf
2 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ class CreateGpgSignatures < ActiveRecord::Migration
|
||||||
t.binary :commit_sha, limit: Gitlab::Database.mysql? ? 20 : nil
|
t.binary :commit_sha, limit: Gitlab::Database.mysql? ? 20 : nil
|
||||||
t.binary :gpg_key_primary_keyid, limit: Gitlab::Database.mysql? ? 20 : nil
|
t.binary :gpg_key_primary_keyid, limit: Gitlab::Database.mysql? ? 20 : nil
|
||||||
|
|
||||||
t.string :gpg_key_user_name
|
t.text :gpg_key_user_name
|
||||||
t.string :gpg_key_user_email
|
t.text :gpg_key_user_email
|
||||||
|
|
||||||
t.index :commit_sha
|
t.index :commit_sha
|
||||||
t.index :gpg_key_primary_keyid
|
t.index :gpg_key_primary_keyid
|
||||||
|
|
|
@ -560,8 +560,8 @@ ActiveRecord::Schema.define(version: 20170725145659) do
|
||||||
t.boolean "valid_signature"
|
t.boolean "valid_signature"
|
||||||
t.binary "commit_sha"
|
t.binary "commit_sha"
|
||||||
t.binary "gpg_key_primary_keyid"
|
t.binary "gpg_key_primary_keyid"
|
||||||
t.string "gpg_key_user_name"
|
t.text "gpg_key_user_name"
|
||||||
t.string "gpg_key_user_email"
|
t.text "gpg_key_user_email"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", using: :btree
|
add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", using: :btree
|
||||||
|
|
Loading…
Reference in a new issue