From fc01e35a4344ca52f6446712f4916f373112fae3 Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 9 Sep 2018 23:40:26 +0200 Subject: [PATCH] Add collation to tables --- application/migrations/sqlscripts/attributes.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/migrations/sqlscripts/attributes.sql b/application/migrations/sqlscripts/attributes.sql index 0a5471985..d213e2acc 100644 --- a/application/migrations/sqlscripts/attributes.sql +++ b/application/migrations/sqlscripts/attributes.sql @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `ospos_attribute_definitions` ( `deleted` TINYINT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`definition_id`), KEY `definition_fk` (`definition_fk`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; CREATE TABLE IF NOT EXISTS `ospos_attribute_values` ( @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS `ospos_attribute_values` ( `attribute_value` VARCHAR(45) NULL, `attribute_datetime` DATETIME NULL, PRIMARY KEY (`attribute_id`) -) ENGINE = InnoDB DEFAULT CHARSET=utf8; +) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; CREATE TABLE IF NOT EXISTS `ospos_attribute_links` ( @@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS `ospos_attribute_links` ( KEY `sale_id` (`sale_id`), KEY `receiving_id` (`receiving_id`), UNIQUE `attribute_links_uq1` (`attribute_id`, `definition_id`, `item_id`, `sale_id`, `receiving_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; ALTER TABLE `ospos_attribute_definitions` @@ -179,4 +179,4 @@ ALTER TABLE `ospos_items` DROP COLUMN `custom7`, DROP COLUMN `custom8`, DROP COLUMN `custom9`, - DROP COLUMN `custom10`; \ No newline at end of file + DROP COLUMN `custom10`;