From 223064698e93d481535901c9150a2bdd0fc25629 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Thu, 2 Dec 2021 21:50:46 +0000 Subject: [PATCH] Fix type overrides See https://github.com/kyleconroy/sqlc/issues/819 --- postgres/transactions.sql.go | 2 +- sqlc.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/postgres/transactions.sql.go b/postgres/transactions.sql.go index 8360017..40e4d22 100644 --- a/postgres/transactions.sql.go +++ b/postgres/transactions.sql.go @@ -60,7 +60,7 @@ type GetTransactionsForAccountRow struct { ID uuid.UUID Date time.Time Memo string - Amount postgres.Numeric + Amount Numeric Account string Payee string } diff --git a/sqlc.yaml b/sqlc.yaml index ed524bf..4417ed2 100644 --- a/sqlc.yaml +++ b/sqlc.yaml @@ -6,8 +6,10 @@ packages: schema: "postgres/schema/" queries: "postgres/queries/" overrides: - - go_type: "git.javil.eu/jacob1123/budgeteer/postgres.Numeric" + - go_type: + type: "Numeric" db_type: "pg_catalog.numeric" - - go_type: "git.javil.eu/jacob1123/budgeteer/postgres.Numeric" + - go_type: + type: "Numeric" db_type: "pg_catalog.numeric" nullable: true \ No newline at end of file