mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Add messages table to local clickhouse setup (#51)
* Add messages table to local clickhouse setup
Copied from production, using MergeTree() instead of
SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}').
This still only runs on a fresh setup (e.g. rm -rf .docker/clickhouse),
so it's a poor substitute for actual migrations.
* Update .docker/scripts/clickhouse/001-create-tables.sql
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* Add local clickhouse url+password to development env
---------
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
a5a3dba01d
commit
357bdefb8f
2 changed files with 22 additions and 1 deletions
|
|
@ -31,4 +31,23 @@ CREATE TABLE IF NOT EXISTS default.events
|
|||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY (id, type, timestamp)
|
||||
SETTINGS index_granularity = 8192;
|
||||
SETTINGS index_granularity = 8192;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS default.messages
|
||||
(
|
||||
`id` UUID,
|
||||
`orgId` String,
|
||||
`userId` String,
|
||||
`taskId` String,
|
||||
`ts` Int32,
|
||||
`type` String,
|
||||
`ask` Nullable(String),
|
||||
`say` Nullable(String),
|
||||
`text` Nullable(String),
|
||||
`reasoning` Nullable(String),
|
||||
`partial` Nullable(Bool),
|
||||
`timestamp` Int32
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY (id, timestamp)
|
||||
SETTINGS index_granularity = 8192;
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
DATABASE_URL=postgres://postgres:password@localhost:5432/roo_code_development
|
||||
CLICKHOUSE_URL=http://localhost:8123/default
|
||||
CLICKHOUSE_PASSWORD=password
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue