feat(package): migrator: init migration table

This commit is contained in:
2025-11-04 13:21:15 +00:00
parent 111db5a1ca
commit 00bbd42cab
2 changed files with 29 additions and 1 deletions

View 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; }