Compare commits
No commits in common. "2afbdc7a940be8de6efafdbd3cf9423ff4883500" and "68c8099aafe0877c11e94e81b0ea2eeeec2bd909" have entirely different histories.
2afbdc7a94
...
68c8099aaf
@ -53,7 +53,7 @@ func connect() (*driver.Conn, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Migrate() error {
|
func Migrate() error {
|
||||||
err := Connection.Exec(
|
rows, err := Connection.Query(
|
||||||
context.TODO(),
|
context.TODO(),
|
||||||
`CREATE TABLE IF NOT EXISTS endpoints (
|
`CREATE TABLE IF NOT EXISTS endpoints (
|
||||||
timestamp DateTime,
|
timestamp DateTime,
|
||||||
@ -71,5 +71,6 @@ func Migrate() error {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer rows.Close()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user