mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
add mysql 02 migration
This commit is contained in:
parent
77f758205b
commit
1038a54fe4
2 changed files with 42 additions and 0 deletions
19
db/mysql/migrations/02_report_schema/migration.sql
Normal file
19
db/mysql/migrations/02_report_schema/migration.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE `report` (
|
||||
`report_id` VARCHAR(36) NOT NULL,
|
||||
`user_id` VARCHAR(36) NOT NULL,
|
||||
`website_id` VARCHAR(36) NOT NULL,
|
||||
`type` VARCHAR(200) NOT NULL,
|
||||
`name` VARCHAR(200) NOT NULL,
|
||||
`description` VARCHAR(500) NOT NULL,
|
||||
`parameters` VARCHAR(6000) NOT NULL,
|
||||
`created_at` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||
`updated_at` TIMESTAMP(0) NULL,
|
||||
|
||||
UNIQUE INDEX `report_report_id_key`(`report_id`),
|
||||
INDEX `report_user_id_idx`(`user_id`),
|
||||
INDEX `report_website_id_idx`(`website_id`),
|
||||
INDEX `report_type_idx`(`type`),
|
||||
INDEX `report_name_idx`(`name`),
|
||||
PRIMARY KEY (`report_id`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
Loading…
Add table
Add a link
Reference in a new issue