Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nirapx committed Jul 16, 2024
1 parent e91fd26 commit a033759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seed/postgres/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down

0 comments on commit a033759

Please sign in to comment.