Skip to content

Commit a9200ed

Browse files
cmichallekChristian Michallek
andauthored
fix reserved mysql keyword in db seed (#37)
* fix: using quotes instead of renaming the 'rows' keyword --------- Co-authored-by: Christian Michallek <cmichallek@fastbill.com>
1 parent 2d88cbe commit a9200ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/seed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func MustApplyDatabaseSeed(file string, db *gorm.DB, excludedTables ...[]string)
2323

2424
applySeedCheckSQL := `
2525
SELECT
26-
SUM(TABLE_ROWS) AS rows
26+
SUM(TABLE_ROWS) AS 'rows'
2727
FROM
2828
information_schema.TABLES
2929
WHERE

0 commit comments

Comments
 (0)