You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2021/08/30 17:06:19 UTC

[trafficcontrol] 06/12: Run goose~schema_migrations trigger after UPDATE, not INSERT (#6134)

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 <zr...@apache.org>
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();