Skip to content

Commit

Permalink
use utf8mb4_bin collation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 8, 2019
1 parent 25dd33d commit 613dac2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

ActiveRecord::Schema.define(version: 2019_03_02_161113) do

create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC", force: :cascade do |t|
create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t|
t.string "name", limit: 191, null: false
t.string "record_type", null: false
t.bigint "record_id", null: false
Expand All @@ -22,7 +22,7 @@
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
end

create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC", force: :cascade do |t|
create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t|
t.string "key", limit: 191, null: false
t.string "filename", limit: 191, null: false
t.string "content_type", limit: 191
Expand All @@ -33,7 +33,7 @@
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
end

create_table "allocator", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "allocator", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.string "contact_email", null: false
t.string "contact_name", limit: 80, null: false
t.datetime "created"
Expand Down Expand Up @@ -62,7 +62,7 @@
t.index ["symbol"], name: "symbol", unique: true
end

create_table "allocator_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "allocator_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.bigint "allocator", null: false
t.bigint "prefixes", null: false
t.datetime "created_at"
Expand All @@ -72,7 +72,7 @@
t.index ["prefixes"], name: "FKE7FBD674AF86A1C7"
end

create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t|
t.integer "auditable_id"
t.string "auditable_type"
t.integer "associated_id"
Expand All @@ -94,7 +94,7 @@
t.index ["user_id", "user_type"], name: "user_index"
end

create_table "datacentre", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "datacentre", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.text "comments", limit: 4294967295
t.string "contact_email", null: false
t.string "contact_name", limit: 80, null: false
Expand Down Expand Up @@ -122,7 +122,7 @@
t.index ["url"], name: "index_datacentre_on_url", length: 100
end

create_table "datacentre_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "datacentre_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.bigint "datacentre", null: false
t.bigint "prefixes", null: false
t.datetime "created_at"
Expand All @@ -134,7 +134,7 @@
t.index ["prefixes"], name: "FK13A1B3BAAF86A1C7"
end

create_table "dataset", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "dataset", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.datetime "created"
t.string "doi", null: false
t.binary "is_active", limit: 1, null: false
Expand Down Expand Up @@ -189,7 +189,7 @@
t.index ["url"], name: "index_dataset_on_url", length: 100
end

create_table "media", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "media", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.datetime "created"
t.string "media_type", limit: 80
t.datetime "updated"
Expand All @@ -200,7 +200,7 @@
t.index ["dataset"], name: "FK62F6FE44D3D6B1B"
end

create_table "metadata", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "metadata", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.datetime "created"
t.integer "metadata_version"
t.integer "version"
Expand All @@ -212,7 +212,7 @@
t.index ["dataset"], name: "FKE52D7B2F4D3D6B1B"
end

create_table "prefix", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
create_table "prefix", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.datetime "created"
t.string "prefix", limit: 80, null: false
t.integer "version"
Expand Down

0 comments on commit 613dac2

Please sign in to comment.