Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-1011

Bad Derby migration script for AlarmDatabase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1
    • 1.0
    • Alarms
    • None

    Description

      The current script for migrating the AlarmDatabase from version 1 to 2 has the following SQL:

      ALTER TABLE alarm (
      ADD COLUMN collection_id VARCHAR(255),
      ADD FOREIGN KEY (component_guid) REFERENCES component(component_guid)
      );

      which for some reason cannot be used to migrate the Derby database.
      Instead it should be:

      ALTER TABLE alarm ADD COLUMN collection_id VARCHAR(255);
      ALTER TABLE alarm ADD FOREIGN KEY (component_guid) REFERENCES component(component_guid);

      Attachments

        Activity

          People

            Unassigned Unassigned
            jolf Jonas Lindberg Frellesen (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: