Skip to content
Gilles QUERRET edited this page Apr 20, 2015 · 15 revisions

PCTLoadSchema task -- <pct:schema_load />

Description

Loads database schema.

Parameters

Attribute Description Type Requirement Default value
srcFile File containing the schema dump File Required No default value
unfreeze Unfreeze the tables in the database before loading the schema, then refreeze everything that was unfrozen after the load Boolean Optional False
onlineChanges Relaxes requirements to apply online changes (use SESSION:SCHEMA-CHANGE = 'NEW OBJECTS') Boolean Optional False
commitWhenErrors Commits transaction even if there are errors. If set to true and there are errors, it just displays a warning. If set to false and there are errors, build fails Boolean Optional False
callbackClass Callback class during schema load. Only for OpenEdge 11.3+ String Optional No default value

PCTLoadSchema inherits attributes from PCT and PCTRun.

Parameters as nested elements

Adds a resource collection to be loaded in database

Examples

<PCTLoadSchema srcFile="schema.df" dlcHome="${env.DLC}">
  <PCTConnection dbName="test" singleUser="true" />
</PCTLoadSchema>

Connects in single-user mode to test.db and loads schema from schema.df

<PCTLoadSchema dlcHome="${env.DLC}">
  <PCTConnection dbName="test" singleUser="true" />
  <fileset dir="schema" includes="*.df" />
</PCTLoadSchema>

Connects in single-user mode to test.db and loads every .df file in schema directory

Clone this wiki locally