mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
segment migration and support
This commit is contained in:
parent
42be91b736
commit
1840b8b419
8 changed files with 1484 additions and 1412 deletions
17
db/postgresql/migrations/11_add_segment/migration.sql
Normal file
17
db/postgresql/migrations/11_add_segment/migration.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE "segment" (
|
||||
"segment_id" UUID NOT NULL,
|
||||
"website_id" UUID NOT NULL,
|
||||
"name" VARCHAR(200) NOT NULL,
|
||||
"filters" JSONB NOT NULL,
|
||||
"created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" TIMESTAMPTZ(6),
|
||||
|
||||
CONSTRAINT "segment_pkey" PRIMARY KEY ("segment_id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "segment_segment_id_key" ON "segment"("segment_id");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "segment_website_id_idx" ON "segment"("website_id");
|
||||
Loading…
Add table
Add a link
Reference in a new issue