Skip to content

Latest commit

 

History

History

baseline

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Baseline

This test case is demonstrating a license check, prepare command usage and executing A type script at the end. It creates a history table with the name provided in the configuration file, rather than using a default table name.

Schema Guard accepts configuration parameters from the command-line, configuration file, and environment variables. So, you can set parameters from test.cfg in different ways. Please consult Configuration article about details.

Running the test

../test.sh baseline

The test does the following:

  1. Checks the license.
  2. Detects prepare flag and creates a history table and executes after.sql script at the end.
  3. Dumps schema in YAML format and compares it with expected output.
  4. Runs pg_dump to dump the schema in SQL format, then compares it with expected output.

You can find the details about script types, versioning and script execution order in Script Versions and Types article.