mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ALF-9990: Schema auto-update fails on MS SQL Server
- Added missing index for FK - Added NodeDAO.deleteSubscriptions and only added implementation for MSSQL - Removed ON DELETE CASCADE for MSSQL from create scripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -7,13 +7,15 @@
|
||||
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
||||
--
|
||||
|
||||
CREATE TABLE alf_subscriptions (
|
||||
CREATE TABLE alf_subscriptions
|
||||
(
|
||||
user_node_id INT8 NOT NULL,
|
||||
node_id INT8 NOT NULL,
|
||||
PRIMARY KEY (user_node_id, node_id),
|
||||
CONSTRAINT fk_alf_sub_user FOREIGN KEY (user_node_id) REFERENCES alf_node(id) ON DELETE CASCADE,
|
||||
CONSTRAINT fk_alf_sub_node FOREIGN KEY (node_id) REFERENCES alf_node(id) ON DELETE CASCADE
|
||||
);
|
||||
CREATE INDEX fk_alf_sub_node ON alf_subscriptions (node_id);
|
||||
|
||||
--
|
||||
-- Record script finish
|
||||
|
Reference in New Issue
Block a user