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.
../test.sh baseline
The test does the following:
- Checks the license.
- Detects
prepare
flag and creates a history table and executesafter.sql
script at the end. - Dumps schema in YAML format and compares it with expected output.
- 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.