Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 36971 invoked from network); 16 May 2008 08:19:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 08:19:18 -0000 Received: (qmail 60795 invoked by uid 500); 16 May 2008 08:19:19 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 60486 invoked by uid 500); 16 May 2008 08:19:19 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 60146 invoked by uid 99); 16 May 2008 08:19:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 01:19:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 08:18:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B3DF5234C11A for ; Fri, 16 May 2008 01:18:55 -0700 (PDT) Message-ID: <537872348.1210925935735.JavaMail.jira@brutus> Date: Fri, 16 May 2008 01:18:55 -0700 (PDT) From: "Ate Douma (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Assigned: (JS2-838) scripts for mssql database generation doesn't work In-Reply-To: <21805711.1198699843237.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JS2-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma reassigned JS2-838: ----------------------------- Assignee: Ate Douma (was: David Sean Taylor) > scripts for mssql database generation doesn't work > -------------------------------------------------- > > Key: JS2-838 > URL: https://issues.apache.org/jira/browse/JS2-838 > Project: Jetspeed 2 > Issue Type: Bug > Components: Persistence and DAO > Affects Versions: 2.2 > Environment: MS SQL Server 2005 > Reporter: Vitaly Baranovsky > Assignee: Ate Douma > Attachments: patchmssqlschema2.txt > > > When I run script for mssql on MS SQL Server 2005 it doesn't create database. > For foreign keys that references to same table, ms sql server writes next error: > com.microsoft.sqlserver.jdbc.SQLServerException: Introducing FOREIGN KEY constraint 'FK_PAGE_MENU_1' on table 'PAGE_MENU' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. > So, for Ms Sql Server there is need to change ON DELETE CASCADE to ON DELETE NO ACTION for all foreign keys that references to same table. > I have a patch to schemas (to phase2-schema.xml and security-schema.xml). But after this changes generated scripts will change ON DELETE type of constraint (from CASCADE to NO ACTION) for described types of foreign keys for all databases (not only for mssql). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org