Commit Graph

139 Commits

Author SHA1 Message Date
Francis Cao
074fa2c5fc add subdivision2 to schema 2023-02-16 09:52:07 -08:00
Francis Cao
b6cc6cb655 update CH, postgres, MySQL schemas 2023-02-15 09:40:49 -08:00
Francis Cao
6457ddfec1 update 01_init to latest 2023-02-02 10:18:06 -08:00
Francis Cao
9078444ca5 update mysql to latest schema 2023-02-02 10:12:25 -08:00
Francis Cao
0b16d06d8c move migrate-db to own repo 2023-02-02 10:04:21 -08:00
Francis Cao
d6e17fe982 Merge branch 'dev' of https://github.com/umami-software/umami into feat/um-121-v2-migration-script 2023-02-02 10:00:53 -08:00
Francis Cao
5fd946cfde add schema changes for TeamWebsite, update deleted logic for team tables 2023-02-01 17:08:16 -08:00
Francis Cao
7c0db0633f update check-db, add pgcrypto extension if not exists on init migration 2023-01-20 14:21:11 -08:00
Francis Cao
529b7a35c3 add pgcrypto to postgres via extension preview 2023-01-17 10:36:16 -08:00
Francis Cao
65fe29c385 add mysql migration_v2 file, refactor migrate-db 2023-01-13 11:54:22 -08:00
Francis Cao
b05b18e736 update checkV1Tables check 2023-01-10 15:01:41 -08:00
Francis Cao
19166e580e add mysql schema file 2023-01-05 14:40:34 -08:00
Francis Cao
f10694d07e create new mysql schema file 2023-01-05 11:13:49 -08:00
Francis Cao
3cf0617366 add warning message during data transfer 2023-01-04 00:26:31 -08:00
Francis Cao
c24f8cb985 add data migration script 2023-01-03 13:16:29 -08:00
Francis Cao
8ee7172ea0 drop foreign keys, add missing indexes 2022-12-27 16:26:25 -08:00
Mike Cao
aef7326f4c Added access_code column to teams. 2022-12-27 00:00:31 -08:00
Brian Cao
4501951336 Fix admin create. 2022-12-12 12:31:56 -08:00
Brian Cao
8097428a4b Add 01 migration. 2022-12-12 12:04:31 -08:00
Mike Cao
4eb3140e43 Updated schema. 2022-12-05 13:03:02 -08:00
Brian Cao
b40630f9d4 Merge remote-tracking branch 'origin/dev' into dev 2022-12-01 22:06:39 -08:00
Brian Cao
4ef48a8f4b Add 02 migration. 2022-12-01 22:06:36 -08:00
Brian Cao
06bebadbb9
Feat/um 114 roles and permissions (#1683)
* Auth checkpoint.

* Merge branch 'dev' into feat/um-114-roles-and-permissions
2022-12-01 20:53:37 -08:00
Brian Cao
77b739870e Add database migration. 2022-11-29 21:56:43 -08:00
Brian Cao
d5437c895e Add Role to TeamUser. 2022-11-28 13:08:48 -08:00
Brian Cao
d60ad1c782 Fix isAdmin check. Fix Schema. 2022-11-21 16:44:42 -08:00
Brian Cao
78225691df Add permission checks. 2022-11-20 00:48:13 -08:00
Brian Cao
5aa8187e42 Add queries for new schema. 2022-11-17 22:27:33 -08:00
Brian Cao
b0c7980a20 Merge branch 'dev' into feat/um-23-new-schema 2022-11-16 18:34:03 -08:00
Francis Cao
106dd25594 clickhosue: validate string being sent into event_data 2022-11-16 11:42:02 -08:00
Brian Cao
f3726e5abf Re-add realtime data 2022-11-16 10:32:02 -08:00
Brian Cao
0aaba8cbd1 Initial Typescript models. 2022-11-15 13:21:14 -08:00
Brian Cao
563589393a Update schema table names. 2022-11-10 11:58:43 -08:00
Brian Cao
73a57cd2cf fix casing 2022-11-10 11:08:40 -08:00
Francis Cao
6a0d5ee1e6 add rev_id to CH schema 2022-11-07 18:03:27 -08:00
Mike Cao
3485b6268b Added rev_id column. Updated redis calls. 2022-11-07 16:22:49 -08:00
Mike Cao
a9112f39ec Updated schema. 2022-11-04 16:15:26 -07:00
Brian Cao
17041efaae use uuid 2022-10-31 23:42:37 -07:00
Brian Cao
ebf439c598
fix auth, add pg extension (#1596) 2022-10-25 10:27:43 -07:00
Brian Cao
ba31f48f1a
Feat/um 49 query builder api (#1573)
* add uuid to event. add indexes

* eventdata api

* add event data

* remove test data

* update list
2022-10-21 21:33:23 -07:00
Brian Cao
9147415761 add index to uuid 2022-10-12 12:20:20 -07:00
Brian Cao
249f02d073 fix schema 2022-10-11 23:10:32 -07:00
Brian Cao
317d3c6637 fix schema script 2022-10-11 21:02:15 -07:00
Brian Cao
ec6454aead Merge branch 'dev' into feat/um-66-update-clickhouse-schema-uuid 2022-10-10 16:20:07 -07:00
Brian Cao
78338205a3
Feat/um 62 prisma property names (#1562)
* checkpoint

* fix pg schema

* fix mysql schema

* change property names
2022-10-10 13:42:18 -07:00
Francis Cao
96add409b6 update api to new CH columns 2022-10-08 16:12:33 -07:00
Brian Cao
6de634f0b4 add mysql changes 2022-10-02 20:42:32 -07:00
Brian Cao
adb0a06006 add uuid to account 2022-09-30 22:27:47 -07:00
Brian Cao
8e068310b8 remove CH migration 2022-09-12 10:12:17 -07:00
Brian Cao
52e036964b Merge Session/Event/Pageview CH 2022-09-12 09:55:34 -07:00
Brian Cao
0c33bb9e2d fix schema file. 2022-09-01 14:54:25 -07:00
Brian Cao
12704c81e5 set experiment. 2022-08-31 21:44:49 -07:00
Brian Cao
7c05a54ffe allow event data CH 2022-08-30 17:29:30 -07:00
Brian Cao
d53b4a8895 roll back bigint. add loading 2022-08-30 00:03:22 -07:00
Brian Cao
c875096aa7 remove event_old drop 2022-08-23 14:26:44 -07:00
Mike Cao
549ef0295f Remove EXISTS causing migration failure. 2022-08-23 01:00:01 -07:00
Mike Cao
f75603025c
Merge pull request #1453 from umami-software/francis/uc-24-kafka-test
Francis/uc 24 kafka test
2022-08-23 02:08:36 -05:00
Francis Cao
71c1b979da Merge branch 'dev' of https://github.com/umami-software/umami into francis/uc-24-kafka-test 2022-08-22 23:05:45 -07:00
Francis Cao
2715a124de ch init formatting 2022-08-22 23:05:22 -07:00
Brian Cao
4924a616f9 cascading deletes mysql 2022-08-22 16:00:26 -07:00
Francis Cao
295ce2487d Merge branch 'master' of https://github.com/umami-software/umami into francis/uc-24-kafka-test 2022-08-18 16:54:57 -07:00
Brian Cao
3003371752 remove cascading delete 2022-08-17 17:35:52 -07:00
Brian Cao
d3f3e610a6 big int 2022-08-16 21:03:02 -07:00
Francis Cao
508e23c52e update clickhouse schema 2022-08-16 15:27:59 -07:00
Francis Cao
192dd218cb move kafka logic into own file 2022-08-12 09:21:43 -07:00
Brian Cao
e269ace88f add logic to mysql migration 2022-08-11 11:33:21 -07:00
Brian Cao
8c504ff923 align index names if error 2022-08-11 10:07:26 -07:00
Francis Cao
55ba7d95ab fix clickhouse date timezone issues 2022-08-08 22:09:18 -07:00
Francis Cao
1a84608e2b add Clickhouse migration files. update saveEvent to include event_uuid 2022-08-04 20:15:21 -07:00
Brian Cao
daf3978970 address PR comments. line up PSQL / MYSQL 2022-08-01 20:50:14 -07:00
Brian Cao
01b517f68e remove event_old from schema 2022-08-01 13:49:56 -07:00
Brian Cao
7b0d6af147 refactor table drop 2022-08-01 12:22:17 -07:00
Brian Cao
8f934c7e6c checkpoint 2022-07-29 22:30:09 -07:00
Brian Cao
3e2c098c05 create mysql migration 2022-07-27 23:16:16 -07:00
Brian Cao
6fbd566b29 add prisma migration 2022-07-27 17:13:53 -07:00
Brian Cao
b415892b7d restart migration. refresh schema 2022-07-27 12:03:12 -07:00
Brian Cao
689091212e update migration 2022-07-26 00:33:52 -07:00
Brian Cao
79ae5b0571 add migration prisma 4 2022-07-25 23:52:59 -07:00
Mike Cao
64f1841ae4 Upgrade to Prisma 4. 2022-07-14 22:57:38 -07:00
mike
5e0c5643c6 Unify database changes. Closes #1264 2022-07-06 20:45:53 -07:00
Mike Cao
16c723a9cb Added missing migration step. 2022-06-28 09:20:51 -07:00
Mike Cao
eda40d2336 Updated migration process. 2022-06-27 22:09:47 -07:00
Mike Cao
3061c3166c Removed bad migration file. 2022-06-27 13:24:08 -07:00
Mike Cao
661bf2863c
Merge pull request #1235 from franciscao633/um-12-mysql-match-init-migration-with-schema-file
update mysql schema and init migration file
2022-06-27 13:20:19 -07:00
Francis Cao
921f52ab9e update mysql schema and init migration file 2022-06-27 11:48:50 -07:00
Mike Cao
37653aa5b5 Renamed init folder. 2022-06-27 11:10:27 -07:00
Mike Cao
77da21ac3e Updated mysql migration file. 2022-06-27 11:07:45 -07:00
Francis Cao
cca344881a match init and postgres prisma schema 2022-06-27 10:30:38 -07:00
Mike Cao
3122bab419 Refactor migrations. 2022-06-19 00:07:01 -07:00