Add collation to tables

This commit is contained in:
jekkos
2018-09-09 23:40:26 +02:00
committed by jekkos
parent 9e7543a41a
commit fc01e35a43

View File

@@ -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`;
DROP COLUMN `custom10`;