goose/tests/clickhouse/testdata/migrations/00002_b.sql

14 lines
283 B
SQL

-- +goose Up
CREATE TABLE IF NOT EXISTS clickstream (
customer_id String,
time_stamp Date,
click_event_type String,
country_code FixedString(2),
source_id UInt64
)
ENGINE = MergeTree()
ORDER BY (time_stamp);
-- +goose Down
DROP TABLE IF EXISTS clickstream;