Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-838

scripts for mssql database generation doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.2.0
    • None
    • Persistence and DAO
    • None
    • MS SQL Server 2005

    Description

      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).

      Attachments

        1. patchmssqlschema2.txt
          5 kB
          Vitaly Baranovsky

        Issue Links

          Activity

            People

              ate Ate Douma
              barvetal Vitaly Baranovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: