feat: add audit logging database schema (#1225)

This commit is contained in:
Colin Adler
2022-05-02 19:30:46 +00:00
committed by GitHub
parent e4e60256ac
commit 81bef1c83e
11 changed files with 458 additions and 84 deletions
+3 -1
View File
@@ -10,6 +10,8 @@ set -euo pipefail
cd "$(dirname "$0")"
# The logic below depends on the exact version being correct :(
[[ $(sqlc version) != "v1.13.0" ]] && go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.13.0
sqlc generate
first=true
@@ -20,7 +22,7 @@ for fi in queries/*.sql.go; do
# Copy the header from the first file only, ignoring the source comment.
if $first; then
head -n 4 < "$fi" | grep -v "source" > queries.sql.go
head -n 6 < "$fi" | grep -v "source" > queries.sql.go
first=false
fi