This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch 6.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 2e3151b2b43da61a0edd2120c77e262c8b3ffe98
Author: Zach Hoffman <[email protected]>
AuthorDate: Mon Aug 23 16:14:25 2021 -0600

    Run goose~schema_migrations trigger after UPDATE, not INSERT (#6134)
    
    (cherry picked from commit 2b7c52eaad01af415d4b8af50a9d864c0cc3574e)
---
 traffic_ops/app/db/migrations/00000000000000_init.up.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/app/db/migrations/00000000000000_init.up.sql 
b/traffic_ops/app/db/migrations/00000000000000_init.up.sql
index 0628308..08bf05a 100644
--- a/traffic_ops/app/db/migrations/00000000000000_init.up.sql
+++ b/traffic_ops/app/db/migrations/00000000000000_init.up.sql
@@ -33,6 +33,6 @@ BEGIN
 END$$;
 
 CREATE TRIGGER fast_forward_schema_migrations_trigger
-       AFTER INSERT
+       AFTER UPDATE
        ON schema_migrations
        EXECUTE PROCEDURE fast_forward_schema_migrations_version();

Reply via email to