deleting user id field and adding collaborator foreing key from access

This commit is contained in:
Claudio Barril
2014-01-29 22:15:26 -03:00
parent 93a8647c6a
commit ccd5eb8e15
4 changed files with 20 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
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;