wisemapping-open-source/config/database/mysql/v3.1-to-v3.3.sql
2014-02-12 14:37:04 -03:00

7 lines
188 B
SQL

ALTER TABLE `USER` DROP COLUMN `id`;
ALTER TABLE `ACCESS_AUDITORY`
ADD CONSTRAINT
FOREIGN KEY (user_id) REFERENCES USER (colaborator_id)
ON DELETE CASCADE
ON UPDATE NO ACTION;