From e12d4be1facf0b43343c1d1d1bf48b8eae3dda16 Mon Sep 17 00:00:00 2001 From: thibault173 Date: Mon, 6 Jul 2020 16:42:03 +0200 Subject: [PATCH 1/2] Update db config (delete socket) --- config/database.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.yml b/config/database.yml index 9e531a1..3b2d72d 100644 --- a/config/database.yml +++ b/config/database.yml @@ -7,7 +7,6 @@ default: &default adapter: mysql2 encoding: utf8mb4 - database: mmsc_app pool: 5 timeout: 5000 variables: @@ -15,15 +14,16 @@ default: &default development: <<: *default + database: mmsc_app_development username: root - socket: /tmp/mysql.sock # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: <<: *default - database: db/test.sqlite3 + database: mmsc_app_test + username: root production: <<: *default From 62b728c35e3d89c224aa2b97d9778a125f4c09cd Mon Sep 17 00:00:00 2001 From: thibault173 Date: Mon, 6 Jul 2020 16:45:40 +0200 Subject: [PATCH 2/2] Add collate on schema.rb --- db/schema.rb | 344 +++++++++++++++++++++++++-------------------------- 1 file changed, 172 insertions(+), 172 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 01b06ca..49d6cfc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -12,7 +12,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do - create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "enabled", default: true @@ -20,7 +20,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "admin_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "admin_id" t.bigint "admin_role_id" t.datetime "created_at", precision: 6, null: false @@ -29,7 +29,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_role_id"], name: "index_admin_admin_roles_on_admin_role_id" end - create_table "admin_p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "admin_id" t.bigint "p_customer_id" t.datetime "created_at", precision: 6, null: false @@ -38,7 +38,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_admin_p_customers_on_p_customer_id" end - create_table "admin_permission_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_permission_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "admin_permission_id" t.bigint "admin_role_id" t.datetime "created_at", precision: 6, null: false @@ -47,7 +47,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_role_id"], name: "index_admin_permission_admin_roles_on_admin_role_id" end - create_table "admin_permissions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_permissions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false @@ -57,7 +57,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.integer "position" end - create_table "admin_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "admin_id" t.string "key" t.text "value" @@ -66,13 +66,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_admin_preferences_on_admin_id" end - create_table "admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "admins", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admins", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "firstname" t.string "avatar" @@ -94,14 +94,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "albums", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "albums", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "block_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "block_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "style" t.integer "nbr_columns" t.integer "row1" @@ -128,7 +128,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["image_file_id"], name: "index_block_contents_on_image_file_id" end - create_table "blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "lang_site_id" t.string "block_name" t.string "blockable_type" @@ -140,7 +140,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["lang_site_id"], name: "index_blocks_on_lang_site_id" end - create_table "break_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "break_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "line", default: false t.integer "height" t.string "style" @@ -148,7 +148,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.boolean "enabled", default: false @@ -163,7 +163,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["parent_id"], name: "index_categories_on_parent_id" end - create_table "category_categoryables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "category_categoryables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "category_id" t.string "categoryable_type" t.integer "categoryable_id" @@ -172,7 +172,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["category_id"], name: "index_category_categoryables_on_category_id" end - create_table "category_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "category_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.text "description" @@ -185,7 +185,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["lang_site_id"], name: "index_category_langs_on_lang_site_id" end - create_table "cel_tables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "cel_tables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "position" t.integer "style" t.bigint "table_row_id" @@ -195,13 +195,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["table_row_id"], name: "index_cel_tables_on_table_row_id" end - create_table "circuit_regions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "circuit_regions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "circuits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "circuits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "past_id" t.string "name" t.string "website" @@ -234,7 +234,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_circuits_on_admin_id" end - create_table "comments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "comments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "pseudo", default: "" t.string "email", default: "" t.string "website", default: "" @@ -254,7 +254,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["parent_id"], name: "index_comments_on_parent_id" end - create_table "contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "civilite" t.string "firstname" t.string "name" @@ -277,7 +277,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "data_file_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_file_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.integer "parent_id" @@ -285,7 +285,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "data_file_passwords", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_file_passwords", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "data_file_id" t.string "token" t.text "description" @@ -295,7 +295,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["data_file_id"], name: "index_data_file_passwords_on_data_file_id" end - create_table "data_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "file" t.string "name" t.string "slug" @@ -320,7 +320,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["square_image_file_id"], name: "index_data_files_on_square_image_file_id" end - create_table "departement_frances", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "departement_frances", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "num_dep" t.string "dep_name" t.string "region_name" @@ -329,7 +329,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "download_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "download_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.string "style" t.text "description" @@ -341,13 +341,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["data_file_id"], name: "index_download_contents_on_data_file_id" end - create_table "dynamic_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "dynamic_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "edit_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "edit_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "element_type" t.integer "element_id" t.string "key" @@ -357,13 +357,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_edit_watchers_on_admin_id" end - create_table "export_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "export_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "piece" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "external_links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "external_links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "url" @@ -371,14 +371,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "file_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "file_tunel_downloads", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_tunel_downloads", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "file_tunel_id" t.bigint "file_tunel_send_id" t.string "name" @@ -395,7 +395,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["file_tunel_send_id"], name: "index_file_tunel_downloads_on_file_tunel_send_id" end - create_table "file_tunel_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_tunel_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "file" t.string "token" t.boolean "enabled", default: true @@ -408,7 +408,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["file_tunel_id"], name: "index_file_tunel_files_on_file_tunel_id" end - create_table "file_tunel_sends", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_tunel_sends", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "file_tunel_id" t.string "token" t.string "email" @@ -422,7 +422,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["file_tunel_id"], name: "index_file_tunel_sends_on_file_tunel_id" end - create_table "file_tunels", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_tunels", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.string "slug" @@ -444,7 +444,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_file_tunels_on_p_customer_id" end - create_table "gallery_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "gallery_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.integer "style" @@ -454,7 +454,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "gallery_images", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "gallery_images", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "tags" @@ -467,7 +467,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["image_file_id"], name: "index_gallery_images_on_image_file_id" end - create_table "hashtaggings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "hashtaggings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "hashtag_id" t.string "hashtaggable_type" t.bigint "hashtaggable_id" @@ -478,7 +478,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["hashtaggable_id"], name: "index_hashtaggings_on_hashtaggable_id" end - create_table "hashtags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "hashtags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "enabled", default: false t.integer "lang_site_id" @@ -487,7 +487,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "html_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "html_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.text "content" t.string "style" t.string "content_type" @@ -495,7 +495,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "i_task_projects", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "i_task_projects", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.bigint "admin_id" @@ -505,7 +505,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_i_task_projects_on_admin_id" end - create_table "i_tasks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "i_tasks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "i_task_project_id" t.string "name" t.text "descritpion" @@ -526,7 +526,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["i_task_project_id"], name: "index_i_tasks_on_i_task_project_id" end - create_table "image_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "image_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "image_file_id" t.integer "width" t.integer "height" @@ -549,7 +549,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["image_file_id"], name: "index_image_contents_on_image_file_id" end - create_table "image_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "image_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "file" t.string "name" t.string "slug" @@ -565,7 +565,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "import_csv_champs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "import_csv_champs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "champ" t.string "header" t.string "value" @@ -575,7 +575,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["import_csv_id"], name: "index_import_csv_champs_on_import_csv_id" end - create_table "import_csv_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "import_csv_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "import_csv_id" t.string "element_type" t.integer "element_id" @@ -584,7 +584,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["import_csv_id"], name: "index_import_csv_elements_on_import_csv_id" end - create_table "import_csv_headers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "import_csv_headers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "import_csv_id" t.string "name" t.string "champ" @@ -594,7 +594,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["import_csv_id"], name: "index_import_csv_headers_on_import_csv_id" end - create_table "import_csvs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "import_csvs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "file" t.text "notes" t.boolean "imported", default: false @@ -608,7 +608,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.text "description" end - create_table "lang_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.datetime "published_at" t.string "title" t.string "slug" @@ -636,7 +636,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["slider_image_file_id"], name: "index_lang_articles_on_slider_image_file_id" end - create_table "lang_pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "lang_site_id" t.bigint "page_id" t.text "title" @@ -652,7 +652,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["without_text_image_file_id"], name: "index_lang_pages_on_without_text_image_file_id" end - create_table "lang_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.boolean "enabled", default: false @@ -660,7 +660,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "type" t.string "name" t.string "title" @@ -674,7 +674,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["cible_id"], name: "index_link_contents_on_cible_id" end - create_table "m_events", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_events", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "m_event_type_title" t.bigint "circuit_id" t.bigint "organisateur_id" @@ -693,7 +693,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["organisateur_id"], name: "index_m_events_on_organisateur_id" end - create_table "m_odr_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "ref" t.integer "image_file_id" @@ -706,7 +706,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_brands_on_m_odr_id" end - create_table "m_odr_coupons", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_coupons", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.bigint "m_odr_id" t.datetime "created_at", precision: 6, null: false @@ -714,7 +714,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_coupons_on_m_odr_id" end - create_table "m_odr_file_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_file_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_file_id" t.integer "qte" t.bigint "m_odr_product_id" @@ -729,7 +729,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_product_id"], name: "index_m_odr_file_products_on_m_odr_product_id" end - create_table "m_odr_file_roulages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_file_roulages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_file_id" t.bigint "m_event_id" t.date "date" @@ -743,7 +743,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_file_id"], name: "index_m_odr_file_roulages_on_m_odr_file_id" end - create_table "m_odr_file_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_file_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "need_file" t.text "description" @@ -753,7 +753,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_file_types_on_m_odr_id" end - create_table "m_odr_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "file" t.bigint "m_odr_rep_id" t.datetime "action_date" @@ -777,16 +777,16 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.integer "m_odr_place_id" t.boolean "used" t.integer "nbr_pneus" - t.integer "nbr_pneus_useds" + t.integer "nbr_pneus_useds", default: 0 t.integer "nbr_pneus_not_useds" t.integer "nbr_primes" - t.integer "nbr_primes_useds" + t.integer "nbr_primes_useds", default: 0 t.integer "nbr_primes_not_useds" t.index ["m_odr_file_type_id"], name: "index_m_odr_files_on_m_odr_file_type_id" t.index ["m_odr_rep_id"], name: "index_m_odr_files_on_m_odr_rep_id" end - create_table "m_odr_places", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_places", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "enseigne" t.string "city" @@ -806,7 +806,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_places_on_m_odr_id" end - create_table "m_odr_prime_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_prime_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_prime_id" t.bigint "m_odr_file_id" t.integer "nbr_pneus" @@ -817,7 +817,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_prime_id"], name: "index_m_odr_prime_files_on_m_odr_prime_id" end - create_table "m_odr_primes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_primes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_customer_id" t.bigint "m_odr_file_roulage_id" t.integer "nbr_pneus" @@ -830,7 +830,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_m_odr_primes_on_p_customer_id" end - create_table "m_odr_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_id" t.string "name" t.datetime "created_at", precision: 6, null: false @@ -838,7 +838,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_product_cats_on_m_odr_id" end - create_table "m_odr_product_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_product_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_product_id" t.integer "qte" t.decimal "amount", precision: 14, scale: 2 @@ -847,7 +847,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_product_id"], name: "index_m_odr_product_remises_on_m_odr_product_id" end - create_table "m_odr_product_sizes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_product_sizes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "position" t.bigint "m_odr_product_id" @@ -857,7 +857,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_product_id"], name: "index_m_odr_product_sizes_on_m_odr_product_id" end - create_table "m_odr_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.bigint "m_odr_id" t.string "ref" @@ -869,7 +869,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_products_on_m_odr_id" end - create_table "m_odr_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.text "notes" t.bigint "m_odr_id" t.datetime "download_at" @@ -892,7 +892,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_remises_on_m_odr_id" end - create_table "m_odr_rep_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_rep_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "iban" t.string "bic" t.string "name" @@ -914,7 +914,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_m_odr_rep_ribs_on_admin_id" end - create_table "m_odr_reps", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_reps", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "state" t.integer "admin_id" t.datetime "admin_valid" @@ -978,7 +978,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_tracker_id"], name: "index_m_odr_reps_on_m_odr_tracker_id" end - create_table "m_odr_trackers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_trackers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "token" t.bigint "m_odr_id" @@ -987,7 +987,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_id"], name: "index_m_odr_trackers_on_m_odr_id" end - create_table "m_odr_virements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_virements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "m_odr_id" t.bigint "m_odr_rep_id" t.bigint "m_odr_rep_rib_id" @@ -1026,7 +1026,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["m_odr_rep_rib_id"], name: "index_m_odr_virements_on_m_odr_rep_rib_id" end - create_table "m_odrs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odrs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.date "start_at" @@ -1092,7 +1092,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_m_odrs_on_p_customer_id" end - create_table "mail_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "lang_site_id" t.bigint "mail_type_id" t.string "subject" @@ -1108,7 +1108,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["mail_type_id"], name: "index_mail_contents_on_mail_type_id" end - create_table "mail_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "lang_site_id" t.string "from_email" t.string "to_email" @@ -1137,7 +1137,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["mail_type_id"], name: "index_mail_hists_on_mail_type_id" end - create_table "mail_profiles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_profiles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "civilite" t.string "firstname" t.string "name" @@ -1156,20 +1156,20 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "mail_templates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_templates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.text "template_html" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "mail_type_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_type_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "mail_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "slug" t.string "default_title" t.text "default_message" @@ -1185,7 +1185,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["mail_type_reference_id"], name: "index_mail_types_on_mail_type_reference_id" end - create_table "map_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "map_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "address" t.string "name" t.integer "view" @@ -1195,7 +1195,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "market_discounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "market_discounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.decimal "min", precision: 10 t.decimal "max", precision: 10 t.decimal "percent", precision: 10 @@ -1204,14 +1204,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.integer "p_customer_cat_id", default: 1 end - create_table "menu_aliases", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_aliases", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "menu_item_id" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.index ["menu_item_id"], name: "index_menu_aliases_on_menu_item_id" end - create_table "menu_item_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "article_id" t.datetime "created_at", precision: 6, null: false @@ -1220,7 +1220,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["menu_item_id"], name: "index_menu_item_articles_on_menu_item_id" end - create_table "menu_item_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "category_id" t.datetime "created_at", precision: 6, null: false @@ -1229,7 +1229,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["menu_item_id"], name: "index_menu_item_categories_on_menu_item_id" end - create_table "menu_item_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "lang_site_id" t.string "name" t.string "slug" @@ -1245,7 +1245,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["menu_item_id"], name: "index_menu_item_langs_on_menu_item_id" end - create_table "menu_item_link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "image_file_id" t.string "title" @@ -1265,7 +1265,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["menu_item_id"], name: "index_menu_item_link_contents_on_menu_item_id" end - create_table "menu_item_slug_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_slug_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "permalink" t.string "locale" t.integer "menu_item_id" @@ -1275,7 +1275,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["menu_item_lang_id"], name: "index_menu_item_slug_histories_on_menu_item_lang_id" end - create_table "menu_item_tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "tag_id" t.datetime "created_at", precision: 6, null: false @@ -1284,7 +1284,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["tag_id"], name: "index_menu_item_tags_on_tag_id" end - create_table "menu_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.string "permalink" @@ -1326,13 +1326,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["parent_id"], name: "index_menu_items_on_parent_id" end - create_table "menu_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "url" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "menus", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menus", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "max_levels" t.string "slug" @@ -1340,7 +1340,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "open_range_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "open_range_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "open_range_id" t.string "element_type" t.integer "element_id" @@ -1348,14 +1348,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "open_ranges", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "open_ranges", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.integer "position" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "organisateurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "organisateurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "past_id" t.string "name" t.string "website" @@ -1386,7 +1386,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["admin_id"], name: "index_organisateurs_on_admin_id" end - create_table "p_bank_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_bank_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_bank_id" t.string "iban" t.string "bic" @@ -1405,21 +1405,21 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_fournisseur_id"], name: "index_p_bank_accounts_on_p_fournisseur_id" end - create_table "p_banks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_banks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "bic" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.decimal "price", precision: 14, scale: 2 t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_commercial_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_commercial_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "description" t.string "type" @@ -1427,7 +1427,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_commercials", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_commercials", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "enabled", default: true t.string "code" t.string "organisation" @@ -1456,7 +1456,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_compta_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_compta_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "element_type" t.bigint "element_id" t.bigint "p_customer_id" @@ -1472,7 +1472,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_p_compta_elements_on_p_customer_id" end - create_table "p_compta_exports", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_compta_exports", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.date "start_at" t.date "end_at" t.text "comment" @@ -1481,7 +1481,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_contact_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contact_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_contact_id" t.bigint "p_contact_type_id" t.datetime "created_at", precision: 6, null: false @@ -1490,13 +1490,13 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_contact_type_id"], name: "index_p_contact_contact_types_on_p_contact_type_id" end - create_table "p_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "comment" t.string "tel" @@ -1510,7 +1510,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["contactable_id"], name: "index_p_contacts_on_contactable_id" end - create_table "p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "code" t.integer "payment_days" @@ -1519,7 +1519,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_customer_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "nbr_use" t.string "iban" t.string "bic" @@ -1543,7 +1543,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_p_customer_ribs_on_p_customer_id" end - create_table "p_customer_sheets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_sheets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "state" t.string "comments" t.bigint "p_customer_id" @@ -1584,7 +1584,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_p_customer_sheets_on_p_customer_id" end - create_table "p_customer_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_customer_id" t.string "name" t.bigint "particular_id" @@ -1595,7 +1595,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["particular_id"], name: "index_p_customer_sites_on_particular_id" end - create_table "p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.decimal "encourt_max", precision: 14, scale: 2 t.bigint "p_customer_cat_id" t.bigint "particular_id" @@ -1730,7 +1730,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["particular_id"], name: "index_p_customers_on_particular_id" end - create_table "p_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "prefix" t.string "label" t.string "affix" @@ -1748,7 +1748,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["data_file_id"], name: "index_p_document_types_on_data_file_id" end - create_table "p_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "element_type" t.bigint "element_id" t.bigint "p_document_type_id" @@ -1813,7 +1813,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["particular_send_id"], name: "index_p_documents_on_particular_send_id" end - create_table "p_fournisseur_orders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_fournisseur_orders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "ref" t.decimal "amount", precision: 14, scale: 2 t.datetime "enter_date" @@ -1831,7 +1831,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_fournisseur_id"], name: "index_p_fournisseur_orders_on_p_fournisseur_id" end - create_table "p_fournisseurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_fournisseurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "code" t.string "address1" @@ -1846,7 +1846,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_payment_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payment_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_payment_id" t.bigint "p_document_id" t.decimal "amount", precision: 14, scale: 2 @@ -1858,7 +1858,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_payment_id"], name: "index_p_payment_documents_on_p_payment_id" end - create_table "p_payment_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payment_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "code" t.boolean "enabled", default: false @@ -1870,7 +1870,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_bank_account_id"], name: "index_p_payment_types_on_p_bank_account_id" end - create_table "p_payments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.datetime "paid_at" t.datetime "theo_date" t.bigint "p_payment_type_id" @@ -1914,14 +1914,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_ship_tour_truck_sheet_line_id"], name: "index_p_payments_on_p_ship_tour_truck_sheet_line_id" end - create_table "p_price_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_price_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "enabled", default: true t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_brut_product_id" t.bigint "p_product_id" t.decimal "qte", precision: 14, scale: 2 @@ -1931,7 +1931,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_id"], name: "index_p_product_brut_products_on_p_product_id" end - create_table "p_product_brut_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_brut_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_brut_product_id" t.bigint "p_fournisseur_order_id" t.bigint "p_tank_id" @@ -1955,7 +1955,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_tank_id"], name: "index_p_product_brut_stocks_on_p_tank_id" end - create_table "p_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "code" t.string "purchase_account" @@ -1965,7 +1965,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_feature_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_feature_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "enabled" @@ -1973,7 +1973,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_features", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_features", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "p_product_feature_cat_id" t.string "ac_name" t.string "cc_name" @@ -1983,7 +1983,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_customer_cat_id" t.datetime "created_at", precision: 6, null: false @@ -1992,7 +1992,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_id"], name: "index_p_product_p_customer_cats_on_p_product_id" end - create_table "p_product_p_normes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_normes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_product_spec_id" t.datetime "created_at", precision: 6, null: false @@ -2001,7 +2001,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_spec_id"], name: "index_p_product_p_normes_on_p_product_spec_id" end - create_table "p_product_p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_product_sub_cat_id" t.datetime "created_at", precision: 6, null: false @@ -2010,7 +2010,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_sub_cat_id"], name: "index_p_product_p_product_sub_cats_on_p_product_sub_cat_id" end - create_table "p_product_prices", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_prices", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "enabled", default: true t.bigint "p_product_ref_id" t.bigint "p_price_cat_id" @@ -2025,7 +2025,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_ref_id"], name: "index_p_product_prices_on_p_product_ref_id" end - create_table "p_product_ref_price_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_ref_price_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_product_ref_id" t.decimal "price", precision: 14, scale: 2 t.bigint "admin_id" @@ -2035,7 +2035,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_ref_id"], name: "index_p_product_ref_price_histories_on_p_product_ref_id" end - create_table "p_product_refs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_refs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "ref" t.integer "p_product_id" t.decimal "ct_price_ht", precision: 14, scale: 2 @@ -2055,7 +2055,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_product_id" t.string "code" t.text "description" @@ -2065,7 +2065,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_product_id"], name: "index_p_product_specs_on_p_product_id" end - create_table "p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "parent_id" t.string "code" t.string "name" @@ -2075,7 +2075,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.decimal "ct_price_ht", precision: 14, scale: 2 t.decimal "ct_purchase_price_ht", precision: 14, scale: 2 @@ -2105,7 +2105,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["s_brand_id"], name: "index_p_products_on_s_brand_id" end - create_table "p_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.date "date" t.boolean "validated", default: false t.bigint "p_payment_type_id" @@ -2116,7 +2116,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_payment_type_id"], name: "index_p_remises_on_p_payment_type_id" end - create_table "p_sheet_line_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_sheet_line_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_sheet_line_id" t.bigint "p_brut_product_id" t.bigint "p_product_brut_stock_id" @@ -2135,7 +2135,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_sheet_line_id"], name: "index_p_sheet_line_stocks_on_p_sheet_line_id" end - create_table "p_sheet_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_sheet_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_customer_sheet_id" t.bigint "p_product_id" t.bigint "p_tank_id" @@ -2179,7 +2179,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_tank_id"], name: "index_p_sheet_lines_on_p_tank_id" end - create_table "p_ship_bill_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_ship_bill_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_ship_bill_id" t.string "name" t.text "description" @@ -2193,7 +2193,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_ship_bill_id"], name: "index_p_ship_bill_lines_on_p_ship_bill_id" end - create_table "p_ship_bills", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_ship_bills", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.date "count_date" t.date "bill_at" t.string "ref" @@ -2205,7 +2205,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_fournisseur_id"], name: "index_p_ship_bills_on_p_fournisseur_id" end - create_table "p_tank_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_tank_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.datetime "ok_at" t.boolean "enabled", default: false t.bigint "p_brut_product_id" @@ -2221,7 +2221,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_tank_id"], name: "index_p_tank_stocks_on_p_tank_id" end - create_table "p_tanks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_tanks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.decimal "volume", precision: 14, scale: 2 t.bigint "p_brut_product_id" @@ -2230,7 +2230,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_brut_product_id"], name: "index_p_tanks_on_p_brut_product_id" end - create_table "p_truck_spaces", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_truck_spaces", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.decimal "volume", precision: 14, scale: 2 t.bigint "p_truck_id" @@ -2241,7 +2241,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_truck_id"], name: "index_p_truck_spaces_on_p_truck_id" end - create_table "pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.text "title" t.text "description" t.text "keywords" @@ -2252,7 +2252,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "particulars", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "particulars", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "pro", default: false t.string "organisation" t.string "name" @@ -2285,7 +2285,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["owner_id"], name: "index_particulars_on_owner_id" end - create_table "portlets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "portlets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "block_id" t.bigint "content_id" t.string "content_type" @@ -2296,7 +2296,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["content_id"], name: "index_portlets_on_content_id" end - create_table "price_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "prefix" t.string "label" t.string "affix" @@ -2314,7 +2314,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "price_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "archived" t.bigint "p_customer_id" t.integer "p_commercial_id" @@ -2383,7 +2383,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_price_documents_on_p_customer_id" end - create_table "price_line_blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_line_blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "p_customer_id" t.integer "p_commercial_id" t.integer "ac_p_customer_cat_id" @@ -2495,7 +2495,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_price_line_blocks_on_p_customer_id" end - create_table "price_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "archived" t.integer "price_line_block_id" t.integer "position" @@ -2591,7 +2591,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.string "cc_price_calc" end - create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.text "quote" t.string "author" t.string "color" @@ -2603,7 +2603,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["image_file_id"], name: "index_quote_contents_on_image_file_id" end - create_table "s_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.boolean "enabled", default: true t.string "code" t.string "name" @@ -2613,7 +2613,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_compta_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_compta_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "code" t.string "name" t.string "i_account" @@ -2626,14 +2626,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_module_configurations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_module_configurations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_modules", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_modules", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "serial_nbr" t.string "cache_long_serial_number" t.bigint "s_modules_state_id" @@ -2651,14 +2651,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["s_site_id"], name: "index_s_modules_on_s_site_id" end - create_table "s_modules_states", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_modules_states", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_organisations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_organisations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "address1" t.string "address2" @@ -2678,14 +2678,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_site_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_site_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "externe" @@ -2695,7 +2695,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["s_site_type_id"], name: "index_s_sites_on_s_site_type_id" end - create_table "share_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "share_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "url" t.string "facebook_url" t.boolean "facebook", default: false @@ -2712,14 +2712,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "specific_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "specific_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "key" t.string "value" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "table_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "table_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "style" t.integer "nbr_rows" t.integer "nbr_cols" @@ -2727,7 +2727,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "table_rows", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "table_rows", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "position" t.integer "style" t.bigint "table_content_id" @@ -2736,7 +2736,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["table_content_id"], name: "index_table_rows_on_table_content_id" end - create_table "tag_taggables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tag_taggables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "taggable_type" t.bigint "taggable_id" t.bigint "tag_id" @@ -2746,7 +2746,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["taggable_id"], name: "index_tag_taggables_on_taggable_id" end - create_table "tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.string "slug" t.integer "parent_id" @@ -2758,14 +2758,14 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["taggable_id"], name: "index_tags_on_taggable_id" end - create_table "text_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "text_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "style" t.text "content" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "timer_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "timer_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "element_type" t.integer "element_id" t.string "key" @@ -2781,7 +2781,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["p_customer_id"], name: "index_timer_watchers_on_p_customer_id" end - create_table "tiny_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tiny_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "url" t.string "slug" t.text "description" @@ -2792,7 +2792,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "title_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "title_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.text "content" t.integer "level" t.string "style" @@ -2801,7 +2801,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "translations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "translations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "locale" t.string "key" t.text "value" @@ -2811,7 +2811,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.text "description" t.bigint "accounting_zone_id" @@ -2824,7 +2824,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["accounting_zone_id"], name: "index_tva_rates_on_accounting_zone_id" end - create_table "tvable_tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tvable_tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.integer "tvable_id" t.string "tvable_type" t.integer "tva_rate_id" @@ -2832,7 +2832,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.datetime "updated_at", precision: 6, null: false end - create_table "video_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.bigint "video_file_id" t.string "title" t.boolean "download", default: false @@ -2846,7 +2846,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["video_file_id"], name: "index_video_contents_on_video_file_id" end - create_table "video_file_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_file_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "slug" @@ -2858,7 +2858,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["video_file_id"], name: "index_video_file_langs_on_video_file_id" end - create_table "video_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "token" @@ -2883,7 +2883,7 @@ ActiveRecord::Schema.define(version: 2020_06_29_091433) do t.index ["video_folder_id"], name: "index_video_files_on_video_folder_id" end - create_table "video_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.text "description"