Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add a new field as nullable
  • Set the values appropriately (using an admin task).
  • In a future deployment, update the model to make this field not-nullable.

Creating a Database

Following are details on creating a database.

...

  • A profile of "Createdb" must be specified
  • run.config.ts - the standard configuration file specified as a -D parameter
  • This will destroy database contents, recreate the schema, and load the contents of the "import.sql" file.

Updating a Database

Following are details on updating a database.

Mojo: UpdateDbMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/ts/mojo)

Project: admin/db

Configuration Parameters

  • A profile of "Updatedb" must be specified
  • run.config.ts - the standard configuration file specified as a -D parameter
  • This will update the schema and preserve any existing content.  It does not load the contents of the "import.sql" file.

Samples

Sample command line call of the admin tool to create a DB:

...