Skip to content

Creating a Runway Metadata Patch

rrowlands edited this page Feb 7, 2018 · 5 revisions

Steps to create a Runway Metadata Patch (XML)

  1. Rebuild your runway database by using the [clean-gen,rebuild-database] launch in runwaysdk-test
  2. Run the [new-schema] launch to create a new timestamped XML file in runwaysdk-test/src/main/domain
  3. Import the schema file by running the [clean-gen,import-schema-diff] launch in runwaysdk-test.
  4. A SQL diff file will be created in runwaysdk-test/src/main/domain/ddl
  5. Open the SQL diff file and delete the first line, which modifies the dynamic_properties table. Because this task redirects standard out into this file, there may also be standard out lines in this file. Delete them.
  6. Move the sql file into src/main/domain/archive/sql, and move the xml file into src/main/domain/archive/xml.
  7. Copy the sql file into runwaysdk-server/src/main/resources/domain.
  8. Commit the files. DO NOT rebuild metadata.xml.
  9. You can test this in Geoprism by simply running the Geoprism patcher. It will read the new sql file from the classpath.

Steps to create a Runway Metadata Patch (Java)

TODO