mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add template_with_user view to include user contextual data (#8568)
* chore: Refactor template sql queries to use new view * TemplateWithUser -> Template * Add unit test to enforce good view
This commit is contained in:
@@ -57,4 +57,6 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
|
||||
|
||||
go run ../../scripts/dbgen/main.go
|
||||
# This will error if a view is broken.
|
||||
go test -run=TestViewSubset
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user