erikbra / grate

grate - the SQL scripts migration runner
MIT License
209 stars 40 forks source link

Capture, or show, output from SQL Scripts #594

Open philcart opened 3 weeks ago

philcart commented 3 weeks ago

A few of our scripts, particularly those run after migration, maintain seed data.

These scripts have standard SQL PRINT statements showing if actions are being taken. eg:

PRINT 'Inserted n new division codes';

Currently Grate shows the script being executed, but there is no output from the script.

Looking for AfterMigration scripts in "script folder". These scripts will run every time.
--------------------------------------------------------------------------------
 Running 'my script to run.sql'.
--------------------------------------------------------------------------------

Is it possible to have that output show up somewhere?