Skip to content

Commit

Permalink
migrate: treat INSERT as a DML
Browse files Browse the repository at this point in the history
  • Loading branch information
110y committed Dec 25, 2023
1 parent 129afe1 commit 4b8cbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spanner/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (

MigrationNameRegex = regexp.MustCompile(`[a-zA-Z0-9_\-]+`)

dmlRegex = regexp.MustCompile("^(UPDATE|DELETE)[\t\n\f\r ].*")
dmlRegex = regexp.MustCompile("^(INSERT|UPDATE|DELETE)[\t\n\f\r ].*")
)

const (
Expand Down

0 comments on commit 4b8cbeb

Please sign in to comment.