Problem with FK references core.Users | kune | 2015-03-03 01:23 | |||||||||||||||||||||||||||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||||||||||||||||||||||||||
Hello am developing client side file based module that defines own schema and i want to point some foreign keys to core schema is it possible? One of my tables looks like that: CREATE SCHEMA WorkFlowManagement; CREATE TABLE WorkFlowManagement.WorkFlows( WorkFlowId BIGSERIAL NOT NULL, WorkFlowName TEXT NOT NULL UNIQUE , ResponsiblePersonId INTEGER, ContainerPath TEXT NOT NULL, WorkFlowType TEXT NOT NULL, CONSTRAINT PK_WorkFlowId PRIMARY KEY (WorkFlowId), CONSTRAINT FK_ResponsiblePersonId FOREIGN KEY (ResponsiblePersonId) REFERENCES core.Users(UserId) ON UPDATE NO ACTION ON DELETE SET NULL ); This will end up with 500 error: ERROR: referenced relation "users" is not a table It seems like there are no table users. I correctly set dependency on core module in module.xml (checked without db script). schema.xml should be correctly defined too. Any help will be appreciated. Thanks Michal. |
|||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||