Commit Graph

156 Commits

Author SHA1 Message Date
6e79f6c67f update sql to deduplicate rss subscriptions 2023-10-17 16:41:14 +08:00
ab0fc1087d update tsv only if necessary 2023-10-17 12:02:44 +08:00
1b2d93e118 remove duplicate rss subscriptions by user and url; create a unique constraint 2023-10-16 17:35:29 +08:00
e54c1c81a1 soft delete user by calling delete account api 2023-10-16 15:24:53 +08:00
3f4be32df8 Merge library item imports 2023-10-13 18:26:02 +08:00
b0f0dba53d drop position trigger on labels table and sort labels by name returned by labels api 2023-10-12 10:39:35 +08:00
76b382966d Make highlight modification two steps 2023-10-11 19:27:03 +08:00
3201f96d43 add default value = now() to updatedAt field in highlight tables only 2023-10-11 18:41:10 +08:00
0c612c27e7 add default value = now() to updatedAt field in labels, user_profile and highlight tables 2023-10-11 17:05:19 +08:00
768845e101 update the filter value to use is:reading of the Continue Reading filter 2023-10-10 15:33:59 +08:00
1ace21405a create an index for searching by slug 2023-10-05 14:32:05 +08:00
0e7f45a758 create a trigger to update recommender_names in library_item table 2023-10-05 14:32:05 +08:00
f6c906201b fetch recommendations separately too 2023-10-05 14:32:05 +08:00
d4404b0248 fetch labels and highlights after items fetched in a search query 2023-10-05 14:32:05 +08:00
bb59ed757c fix word count not return 2023-10-05 14:32:05 +08:00
bbbb862fac create index for foreign keys 2023-10-05 14:32:05 +08:00
4948801d7b fix a typo 2023-10-05 14:32:05 +08:00
eb0f0b6c4f improve data migration speed 2023-10-05 14:32:05 +08:00
e950662ced Replace the unique constraint on library_item table with a unique index of userId and md5 hashed original url 2023-10-05 14:31:07 +08:00
9e5196406e revert rls on old tables 2023-10-05 14:31:07 +08:00
b20ad4a210 reorder migrate sql 2023-10-05 14:31:07 +08:00
ac77580cca fix label names update not reflected 2023-10-05 14:31:07 +08:00
4ff5484d8e change item_type to text 2023-10-05 14:31:06 +08:00
b2fbbfb073 add deleting existing highlights from postgres before migration 2023-10-05 14:31:06 +08:00
41e8ee3aca finish migration script 2023-10-05 14:31:06 +08:00
68e381deb2 revert note changes 2023-10-05 14:31:06 +08:00
fdd771bc06 add migration script 2023-10-05 14:31:06 +08:00
23b6997d7e resolve db migration script version 2023-10-05 14:30:10 +08:00
024d558cfe update labels rls 2023-10-05 14:30:10 +08:00
4b95b732cf fix highlight tests 2023-10-05 14:30:10 +08:00
b036149fe2 fix feature tests 2023-10-05 14:30:10 +08:00
d50174ef76 fix article tests 2023-10-05 14:30:10 +08:00
e1a7a24323 improve search result 2023-10-05 14:28:52 +08:00
5ed7e819e8 fix label constraint 2023-10-05 14:28:52 +08:00
b72acf8e6f fix permission issue 2023-10-05 14:28:52 +08:00
3f572ea89a fix typo 2023-10-05 14:27:52 +08:00
f8f3ec0c56 save claim in httpContext 2023-10-05 14:27:17 +08:00
c655f78f8c replace highlight 2023-10-05 14:24:28 +08:00
381e9bc173 replace database subscriber with db trigger 2023-10-05 14:24:05 +08:00
648a16615b update search query 2023-10-05 14:22:58 +08:00
0b309b7a45 add recommendation db table and entity 2023-10-05 14:22:58 +08:00
5f0e1af285 update highlight entity 2023-10-05 14:22:58 +08:00
06000264d2 replace saveEmail 2023-10-05 14:22:58 +08:00
928ed2e6a9 add libraryItemPreview entity class 2023-10-05 14:18:21 +08:00
e1af53ab48 add libraryItem entity class 2023-10-05 14:18:21 +08:00
37b7d9a4c7 add sql for creating library_item_preview db table 2023-10-05 14:18:21 +08:00
e722b0e248 add sql to create library_item_labels db table 2023-10-05 14:18:21 +08:00
927414fe18 add sql to create library_item_subscriptions db table 2023-10-05 14:18:21 +08:00
9d2ca1f934 change page_type to enum 2023-10-05 14:18:21 +08:00
56698ae065 add create library_item sql 2023-10-05 14:18:21 +08:00