This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/db/db.sql

14 lines
528 B
MySQL
Raw Normal View History

2021-03-12 07:45:52 +00:00
CREATE TABLE vn.smartTag (
2021-05-10 13:20:31 +00:00
code varchar(12) NOT NULL,
2021-03-12 07:45:52 +00:00
shelvingFk varchar(10) NULL,
`level` int(11) NULL,
2021-03-17 15:02:05 +00:00
CONSTRAINT `PRIMARY` PRIMARY KEY (code),
CONSTRAINT smartTag_FK FOREIGN KEY (shelvingFk) REFERENCES vn.shelving(code)
2021-03-16 11:25:32 +00:00
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8
2021-03-17 15:02:05 +00:00
COLLATE=utf8_general_ci;
2021-03-12 08:59:06 +00:00
2021-03-17 15:02:05 +00:00
--ALTER TABLE vn.smartTag MODIFY COLUMN shelvingFk varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL NULL;
--ALTER TABLE vn.smartTag ADD CONSTRAINT smartTag_FK FOREIGN KEY (shelvingFk) REFERENCES vn.shelving(code);