mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-05 14:24:05 -04:00
Add collation to tables
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user