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 {
|
||||
err := Connection.Exec(
|
||||
rows, err := Connection.Query(
|
||||
context.TODO(),
|
||||
`CREATE TABLE IF NOT EXISTS endpoints (
|
||||
timestamp DateTime,
|
||||
@ -71,5 +71,6 @@ func Migrate() error {
|
||||
log.Fatal(err)
|
||||
return err
|
||||
}
|
||||
defer rows.Close()
|
||||
return nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user