Abdullah Atta
cf8ed91102
core: use migrations to dedup shortcuts
2022-10-17 22:37:23 +05:00
Abdullah Atta
577d50b512
core: move index migrations to main database migrations
...
this is better design wise as we won't have to keep checking if the
indices have been migrated or not. We'll just check the database version
and do the appropriate migrations based on that.
2022-10-17 22:36:53 +05:00
Abdullah Atta
1a589b0955
core: refactor migrations to use items instead of types
2022-10-17 20:00:00 +05:00
Abdullah Atta
f3fa7fe744
core: update core version to 5.8
2022-10-13 19:18:52 +05:00
Abdullah Atta
c09715d053
core: make item migration fall through all db versions
...
this was not exactly a bug but it can cause a lot of unintended
behaviour. Previously, you'd have to manually specify which version the
item migration should jump to. This was buggy and poorly designed.
This change makes the item iterate over all the db migrations one by one
automatically.
For example:
An item at version 5.2 will go through:
- 5.3
- 5.4
- and so on
2022-10-13 19:18:52 +05:00
Abdullah Atta
20819325fb
core: add null sanity checks in migration
2022-09-29 15:12:20 +05:00
Abdullah Atta
7c99c3acb9
core: add migrations for notebooks & settings ( #1020 )
2022-09-21 11:47:09 +05:00
Abdullah Atta
1e99d7732c
core: add new collection for shortcuts
2022-09-07 12:47:02 +05:00
Abdullah Atta
d81f5dba65
refactor: migrate to theme-ui from rebass
2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a
docs: add license header
2022-08-30 16:17:04 +05:00
thecodrr
d17e7f384e
fix: newline artifacts during codeblock migration
2022-07-26 13:25:06 +05:00
thecodrr
36e8d9f225
fix: do not remove br & empty p tags
2022-07-19 09:44:30 +05:00
thecodrr
6f2051c4e1
fix: encode codeblock for html entities
2022-07-19 09:44:16 +05:00
thecodrr
a4f7058f1b
feat: move database version to 5.6
2022-07-15 19:31:18 +05:00
thecodrr
cc25507531
fix: preserve newlines in pre block during migration
2022-07-15 15:39:48 +05:00
thecodrr
ff6463f901
fix: do not touch lists during migration
2022-07-15 14:47:36 +05:00
thecodrr
3f54f36d50
feat: migrate from tiny -> tiptap
2022-07-07 13:17:55 +05:00
thecodrr
12a6ad595f
fix: use full regex to migrate
2021-12-31 09:18:06 +05:00
thecodrr
278d1681ca
fix: table getting converted to raw html
2021-12-29 14:33:29 +05:00
thecodrr
3353d2235e
feat: add migration for table & checklists
2021-12-28 14:50:04 +05:00
thecodrr
fa556015f6
feat: add dateEdited to dateModified migration
2021-12-22 10:24:01 +05:00
thecodrr
23e584f272
fix: add attachments support to migrator & backup
2021-10-28 13:37:55 +05:00
thecodrr
9e640ed7bd
feat: remove quill-delta-to-html
2021-10-23 10:59:03 +05:00
thecodrr
e898db9562
fix: derive consistent md5 ids from tag title
2021-02-20 11:31:44 +05:00
thecodrr
7cb084de54
feat: hash compare conflicted content items
2021-02-12 10:01:06 +05:00
thecodrr
0e1b97e003
fix: migrate conflicted delta to tiny
2021-02-12 09:49:17 +05:00
thecodrr
4fa53ba9c0
feat: migrate from delta to tiny
2021-02-02 12:24:54 +05:00
thecodrr
0795b0d4d0
fix: make sure note.notebooks have topics instead of topic
2020-12-08 12:23:35 +05:00
thecodrr
acd548fd38
fix: minor fixes with migration
2020-12-08 11:58:45 +05:00
thecodrr
2ce75346a1
fix: use string db version
2020-12-07 15:24:08 +05:00
thecodrr
a7750dfc06
fix: add minor migration
2020-12-07 13:11:44 +05:00
thecodrr
555ffd24f7
fix: do not add empty notebook when migrating
2020-12-07 13:02:50 +05:00
thecodrr
f711198cbb
feat: add migrations from v3 to v4
2020-12-07 12:02:50 +05:00
thecodrr
2b30bd9bf0
feat: add migrated flag & update dateEdited on migration
2020-12-06 15:35:23 +05:00
thecodrr
10570e14b2
fix: do not use item.migrated
2020-12-06 15:21:31 +05:00
thecodrr
8d7621def6
fix: do not update dateEdited on migration
2020-12-06 15:16:29 +05:00
thecodrr
0ea24a72e8
fix: allow newly migrated notes to be synced
2020-12-06 14:57:32 +05:00
thecodrr
654adf9e36
fix: improve sync migration
2020-12-06 14:50:01 +05:00
thecodrr
d220d05c1f
feat: add migration on sync
2020-12-06 11:13:17 +05:00
thecodrr
048c74816a
refactor: use a single migration backend
2020-12-06 10:52:00 +05:00
thecodrr
238271b402
fix: only delete favorite property if available
2020-12-05 15:44:29 +05:00
thecodrr
40ce1bc535
feat: remove favorite from notebook
2020-12-05 15:43:52 +05:00
thecodrr
fc7c1001e6
feat: impl automatic database migrations (exp)
2020-12-05 15:26:54 +05:00