Explorar el Código

storing migrate command

Stefan McShane hace 3 años
padre
commit
962145acd3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      database/generate.go

+ 1 - 0
database/generate.go

@@ -2,3 +2,4 @@ package database
 
 //go:generate sqlc generate -f sqlc.yaml
 //go:generate atlas migrate diff --dir file://migrations --to file://schema.sql --dev-url "postgresql://porter:porter@localhost:5432/atlas?sslmode=disable" --format "{{ sql . ' ' }}"
+//go:generate atlas migrate lint --dir file://migrations --dev-url "postgresql://porter:porter@localhost:5432/atlas?sslmode=disable" --latest 1