mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Feat/um 49 query builder api (#1573)
* add uuid to event. add indexes * eventdata api * add event data * remove test data * update list
This commit is contained in:
parent
9c36dc485e
commit
ba31f48f1a
32 changed files with 690 additions and 64 deletions
|
|
@ -1,11 +0,0 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE `account` ADD COLUMN `account_uuid` VARCHAR(36);
|
||||
|
||||
-- Backfill UUID
|
||||
UPDATE `account` SET account_uuid=(SELECT uuid());
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `account` MODIFY `account_uuid` VARCHAR(36) NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX `account_account_uuid_key` ON `account`(`account_uuid`);
|
||||
35
db/mysql/migrations/04_add_uuid/migration.sql
Normal file
35
db/mysql/migrations/04_add_uuid/migration.sql
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE `account` ADD COLUMN `account_uuid` VARCHAR(36);
|
||||
|
||||
-- Backfill UUID
|
||||
UPDATE `account` SET account_uuid=(SELECT uuid());
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `account` MODIFY `account_uuid` VARCHAR(36) NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX `account_account_uuid_key` ON `account`(`account_uuid`);
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `event` ADD COLUMN `event_uuid` VARCHAR(36);
|
||||
|
||||
-- Backfill UUID
|
||||
UPDATE `event` SET event_uuid=(SELECT uuid());
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `event` MODIFY `event_uuid` VARCHAR(36) NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX `event_event_uuid_key` ON `event`(`event_uuid`);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `account_account_uuid_idx` ON `account`(`account_uuid`);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `session_session_uuid_idx` ON `session`(`session_uuid`);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `website_website_uuid_idx` ON `website`(`website_uuid`);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `event_event_uuid_idx` ON `event`(`event_uuid`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue