salix/db/versions/11309-pinkGalax/00-firstScript.sql

33 lines
899 B
SQL

INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES
('CompanyI18n','*','*','ALLOW','ROLE','employee'),
('ItemTypeI18n','*','*','ALLOW','ROLE','employee'),
('InkI18n','*','*','ALLOW','ROLE','employee'),
('OriginI18n','*','*','ALLOW','ROLE','employee'),
('StateI18n','*','*','ALLOW','ROLE','employee'),
('TagI18n','*','*','ALLOW','ROLE','employee'),
('itemCategoryI18n','*','*','ALLOW','ROLE','employee');
ALTER TABLE vn.companyI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.inkI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.itemCategoryI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.itemTypeI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.originI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.stateI18n
ADD id INT AUTO_INCREMENT UNIQUE;
ALTER TABLE vn.tagI18n
ADD id INT AUTO_INCREMENT UNIQUE;