Skip to content

Commit

Permalink
Merge pull request #59 from openmsupply/#58-update-init-scripts
Browse files Browse the repository at this point in the history
Add updated query
  • Loading branch information
mark-prins authored Feb 22, 2021
2 parents b96ea5c + 568c370 commit 1644bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/dbstore/dbstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (datasource *SQLiteDatasource) Init() {
panic(err)
}

stmt, err := db.Prepare("CREATE TABLE IF NOT EXISTS Schedule (id TEXT PRIMARY KEY, interval INTEGER, nextReportTime INTEGER, name TEXT, description TEXT, lookback INTEGER, reportGroupID TEXT, FOREIGN KEY(reportGroupID) REFERENCES ReportGroup(id))")
stmt, err := db.Prepare("CREATE TABLE IF NOT EXISTS Schedule (id TEXT PRIMARY KEY, interval INTEGER, nextReportTime INTEGER, name TEXT, description TEXT, lookback INTEGER, reportGroupID TEXT, time TEXT, day INTEGER, FOREIGN KEY(reportGroupID) REFERENCES ReportGroup(id))")
stmt.Exec()
defer stmt.Close()
if err != nil {
Expand Down

0 comments on commit 1644bd9

Please sign in to comment.