Skip to content

Commit

Permalink
Alter table inventory_unit change tall of column
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech authored and jniles committed Mar 3, 2021
1 parent 66152aa commit e68f5ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ INSERT INTO unit VALUES
-- Stock Movement Flux
INSERT INTO `flux` VALUES
(16, 'STOCK_FLUX.AGGREGATE_CONSUMPTION');

ALTER TABLE `inventory_unit`
CHANGE COLUMN `abbr` `abbr` VARCHAR(50),
CHANGE COLUMN `text` `text` VARCHAR(50);
4 changes: 2 additions & 2 deletions server/models/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ CREATE TABLE `inventory_type` (
DROP TABLE IF EXISTS `inventory_unit`;
CREATE TABLE `inventory_unit` (
`id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
`abbr` VARCHAR(100) NOT NULL,
`text` VARCHAR(100) NOT NULL,
`abbr` VARCHAR(50) NOT NULL,
`text` VARCHAR(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `inventory_unit_1` (`text`),
UNIQUE KEY `inventory_unit_2` (`abbr`)
Expand Down

0 comments on commit e68f5ab

Please sign in to comment.