mirror of
https://github.com/hanzoai/migrate.git
synced 2026-09-30 22:55:10 +00:00
The datastore:// migration driver is now a self-contained golang-migrate database.Driver that opens through github.com/hanzo-ds/go (the native ClickHouse-wire driver registered as the database/sql name "datastore"). The ClickHouse-specific migration logic (multi-statement exec, schema_migrations DDL, cluster/engine config, Version/SetVersion/Drop/Lock) is ported directly into database/datastore, so it no longer embeds or imports the upstream database/clickhouse driver or github.com/ClickHouse/clickhouse-go. - Delete database/clickhouse (driver + test + examples) and internal/cli/build_clickhouse.go. - internal/cli/build_datastore.go drops the clickhouse-go blank import. - go.mod: drop github.com/ClickHouse/clickhouse-go, add github.com/hanzo-ds/go v1.0.1; tidy. Zero clickhouse-go in go.mod, go.sum, and the module/dependency graph. - Port the driver test + example migrations under database/datastore (integration test requires a live datastore/clickhouse-wire backend). - Update README, release workflow build tags, bug report template. Co-authored-by: Hanzo Dev <[email protected]>
11 lines
380 B
SQL
11 lines
380 B
SQL
DROP TABLE IF EXISTS driver_ratings;
|
|
DROP TABLE IF EXISTS user_ratings;
|
|
DROP TABLE IF EXISTS orders;
|
|
DROP TABLE IF EXISTS driver_ratings_queue;
|
|
DROP TABLE IF EXISTS user_ratings_queue;
|
|
DROP TABLE IF EXISTS orders_queue;
|
|
DROP VIEW IF EXISTS user_ratings_queue_mv;
|
|
DROP VIEW IF EXISTS driver_ratings_queue_mv;
|
|
DROP VIEW IF EXISTS orders_queue_mv;
|
|
DROP DATABASE IF EXISTS analytics;
|