Compare commits
No commits in common. "68c8099aafe0877c11e94e81b0ea2eeeec2bd909" and "c8c7f63fdf7bdc7b04aed83a411c0492d1154df3" have entirely different histories.
68c8099aaf
...
c8c7f63fdf
@ -53,7 +53,11 @@ func connect() (*driver.Conn, error) {
|
||||
}
|
||||
|
||||
func Migrate() error {
|
||||
rows, err := Connection.Query(
|
||||
rows, err := Connection.Query(context.TODO(), "SELECT 1")
|
||||
if err != nil {
|
||||
log.Fatal("Query failed:", err)
|
||||
}
|
||||
rows, err = Connection.Query(
|
||||
context.TODO(),
|
||||
`CREATE TABLE IF NOT EXISTS endpoints (
|
||||
timestamp DateTime,
|
||||
@ -61,7 +65,7 @@ func Migrate() error {
|
||||
endpoint LowCardinality(String),
|
||||
status_code UInt16,
|
||||
response_time_ms UInt32,
|
||||
request_method LowCardinality(String)
|
||||
request_method LowCardinality(String),
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PARTITION BY toYYYYMM(timestamp)
|
||||
|
Loading…
Reference in New Issue
Block a user