From a033759bc083144d834f37eedb4076dbf5f92a9d Mon Sep 17 00:00:00 2001 From: nirapx <51790021+nirapx@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:01:44 +0300 Subject: [PATCH] PR fixes --- seed/postgres/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/postgres/config.go b/seed/postgres/config.go index d4c8f61..fd9ea8f 100644 --- a/seed/postgres/config.go +++ b/seed/postgres/config.go @@ -9,7 +9,7 @@ type SeedConfig struct { ClientProvider func() (*sql.DB, error) `json:"-"` // Setup - a string that contains the SQL setup script to run before seeding the data. - Setup string `json:"-"` + Setup string `json:"setup,omitempty"` // Data - a list of objects, each represents a single postgres table and its data Data []*SeedTableData `json:"data,omitempty"` @@ -18,7 +18,7 @@ type SeedConfig struct { // SeedTableData represents data for a Postgres table. type SeedTableData struct { // TableName - the name of the target postgres table - TableName string `json:"table,omitempty"` + TableName string `json:"table_name,omitempty"` // Rows - a list of rows to insert using the postgres Exec function (a `column` tag is required for each field): Rows []any `json:"rows,omitempty"`