Remove foreing key from auditory.

This commit is contained in:
Paulo Gustavo Veiga 2012-07-15 01:38:52 -03:00
parent 5c94291b06
commit 0a74e73c80
2 changed files with 2 additions and 4 deletions

View File

@ -66,8 +66,7 @@ user_id INTEGER NOT NULL,
CREATE TABLE ACCESS_AUDITORY (
id INTEGER NOT NULL IDENTITY,
user_id INTEGER NOT NULL,
login_date date,
--FOREIGN KEY(user_id) REFERENCES USER(id) // Temporally disabled. Exception during first login. Need review..
login_date date
);
COMMIT;

View File

@ -68,8 +68,7 @@ FOREIGN KEY(user_id) REFERENCES USER(colaborator_id) ON DELETE CASCADE ON UPDATE
CREATE TABLE ACCESS_AUDITORY (
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
login_date date,
user_id INTEGER NOT NULL,
FOREIGN KEY(user_id) REFERENCES USER(id) ON DELETE CASCADE ON UPDATE NO ACTION
user_id INTEGER NOT NULL
) CHARACTER SET utf8 ;
COMMIT;