📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added migration
Blue Mouse90bfc87d9489
diff --git a/migrations/mysql/2023_03_18.sql b/migrations/mysql/2023_03_18.sqlnew file mode 100644index 000000000..73555c459--- /dev/null+++ b/migrations/mysql/2023_03_18.sql@@ -0,0 +1,13 @@+alter table action_token modify column `action` enum('0', '1', '2', '3', '4') default null after newValue;+alter table user modify column `reportFrequency` enum('never','weekly','monthly','quarterly') not null default 'monthly' after `isActive`;++CREATE TABLE `project_subscriber` (+ `id` varchar(36) NOT NULL,+ `projectId` varchar(12) NOT NULL,+ `email` varchar(254) NOT NULL,+ `reportFrequency` enum('quarterly','monthly','weekly','never') NOT NULL,+ `isConfirmed` tinyint NOT NULL DEFAULT '0',+ `addedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),+ `updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),+ PRIMARY KEY (`id`)+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;