feat(package): migrator: init migration table
This commit is contained in:
6
test/package/migrator/test/init-migrations.sh
Normal file
6
test/package/migrator/test/init-migrations.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
if ! migration_table_sql="$(migrator --inherits tablename --inherits 'table name' --init-dry-run)"; then
|
||||
log error "test failed: error on migration table init dry run"
|
||||
fi
|
||||
|
||||
printf '%s' "$migration_table_sql" | grep -Eq 'INHERITS[[:space:]]*\([[:space:]]*"tablename"[[:space:]]*,[[:space:]]*"table name"[[:space:]]*\)' ||
|
||||
{ log error "not correct migration table inherits"; exit 1; }
|
||||
Reference in New Issue
Block a user