mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
schema changes to CH, Postgres, MySQL
This commit is contained in:
parent
3823705fc6
commit
9321401297
5 changed files with 64 additions and 26 deletions
20
db/postgresql/migrations/08_split_url_referrer/migration.sql
Normal file
20
db/postgresql/migrations/08_split_url_referrer/migration.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `userId` on the `team_website` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `referrer` on the `website_event` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `url` on the `website_event` table. All the data in the column will be lost.
|
||||
- Added the required column `url_path` to the `website_event` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "team_website" DROP COLUMN "userId";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "website_event" DROP COLUMN "referrer",
|
||||
DROP COLUMN "url",
|
||||
ADD COLUMN "referrer_domain" VARCHAR(500),
|
||||
ADD COLUMN "referrer_path" VARCHAR(500),
|
||||
ADD COLUMN "referrer_query" VARCHAR(500),
|
||||
ADD COLUMN "url_path" VARCHAR(500) NOT NULL,
|
||||
ADD COLUMN "url_query" VARCHAR(500);
|
||||
Loading…
Add table
Add a link
Reference in a new issue