Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: use suffix (#16802)

p0ny4fa83c187af0
diff --git a/action/file.go b/action/file.go
index 4ce8f596bf..e8a3cd05dd 100644
--- a/action/file.go
+++ b/action/file.go
@@ -25,9 +25,9 @@ func getReleaseFiles(pattern string) ([]*v1pb.Release_File, error) {
base := filepath.Base(m)
t := v1pb.Release_File_DDL
switch {
- case strings.Contains(base, "dml"):
+ case strings.HasSuffix(base, "dml"):
t = v1pb.Release_File_DML
- case strings.Contains(base, "ghost"):
+ case strings.HasSuffix(base, "ghost"):
t = v1pb.Release_File_DDL_GHOST
}