Skip to content

Commit

Permalink
Raise notice when applying migration (see #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Mar 6, 2018
1 parent 19d7973 commit a8e5420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ BEGIN
LOCK TABLE applied_migrations IN EXCLUSIVE MODE;
IF NOT EXISTS (SELECT 1 FROM applied_migrations m WHERE m.identifier = migration_name)
THEN
RAISE NOTICE 'Applying migration: %', migration_name;
EXECUTE ddl;
INSERT INTO applied_migrations (identifier, ddl) VALUES (migration_name, ddl);
RETURN TRUE;
Expand Down

1 comment on commit a8e5420

@bnolan
Copy link

@bnolan bnolan commented on a8e5420 Mar 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Awesome thanks :)

Please sign in to comment.