-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # package-lock.json
- Loading branch information
Showing
48 changed files
with
592 additions
and
329 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,165 +1,47 @@ | ||
|
||
UPDATE etapi_tokens SET tokenHash = 'API token hash value'; | ||
UPDATE notes SET title = 'title' WHERE noteId != 'root' AND noteId NOT LIKE '\_%' ESCAPE '\'; | ||
UPDATE notes SET title = 'title' WHERE title NOT IN ('root', '_hidden', '_share'); | ||
UPDATE blobs SET content = 'text' WHERE content IS NOT NULL; | ||
UPDATE revisions SET title = 'title'; | ||
|
||
UPDATE attributes SET name = 'name', value = 'value' | ||
WHERE type = 'label' | ||
AND name NOT IN ('inbox', | ||
'disableVersioning', | ||
'calendarRoot', | ||
'archived', | ||
'excludeFromExport', | ||
'disableInclusion', | ||
'appCss', | ||
'appTheme', | ||
'hidePromotedAttributes', | ||
'readOnly', | ||
'autoReadOnlyDisabled', | ||
'cssClass', | ||
'iconClass', | ||
'keyboardShortcut', | ||
'run', | ||
'runOnInstance', | ||
'runAtHour', | ||
'customRequestHandler', | ||
'customResourceProvider', | ||
'widget', | ||
'noteInfoWidgetDisabled', | ||
'linkMapWidgetDisabled', | ||
'revisionsWidgetDisabled', | ||
'whatLinksHereWidgetDisabled', | ||
'similarNotesWidgetDisabled', | ||
'workspace', | ||
'workspaceIconClass', | ||
'workspaceTabBackgroundColor', | ||
'searchHome', | ||
'workspaceInbox', | ||
'workspaceSearchHome', | ||
'sqlConsoleHome', | ||
'datePattern', | ||
'pageSize', | ||
'viewType', | ||
'mapRootNoteId', | ||
'bookmarkFolder', | ||
'sorted', | ||
'top', | ||
'fullContentWidth', | ||
'shareHiddenFromTree', | ||
'shareAlias', | ||
'shareOmitDefaultCss', | ||
'shareRoot', | ||
'internalLink', | ||
'imageLink', | ||
'relationMapLink', | ||
'includeMapLink', | ||
'runOnNoteCreation', | ||
'runOnNoteTitleChange', | ||
'runOnNoteContentChange', | ||
'runOnNoteChange', | ||
'runOnChildNoteCreation', | ||
'runOnAttributeCreation', | ||
'runOnAttributeChange', | ||
'template', | ||
'inherit', | ||
'widget', | ||
'renderNote', | ||
'shareCss', | ||
'shareJs', | ||
'shareFavicon', | ||
'executeButton', | ||
'keepCurrentHoisting', | ||
'color', | ||
'toc', | ||
'excludeFromNoteMap', | ||
'docName', | ||
'launcherType', | ||
'builtinWidget', | ||
'baseSize', | ||
'growthFactor' | ||
); | ||
UPDATE attributes SET name = 'name' | ||
AND name NOT IN ('inbox', | ||
'disableVersioning', | ||
'calendarRoot', | ||
'archived', | ||
'excludeFromExport', | ||
'disableInclusion', | ||
'appCss', | ||
'appTheme', | ||
'hidePromotedAttributes', | ||
'readOnly', | ||
'autoReadOnlyDisabled', | ||
'cssClass', | ||
'iconClass', | ||
'keyboardShortcut', | ||
'run', | ||
'runOnInstance', | ||
'runAtHour', | ||
'customRequestHandler', | ||
'customResourceProvider', | ||
'widget', | ||
'noteInfoWidgetDisabled', | ||
'linkMapWidgetDisabled', | ||
'revisionsWidgetDisabled', | ||
'whatLinksHereWidgetDisabled', | ||
'similarNotesWidgetDisabled', | ||
'workspace', | ||
'workspaceIconClass', | ||
'workspaceTabBackgroundColor', | ||
'searchHome', | ||
'workspaceInbox', | ||
'workspaceSearchHome', | ||
'sqlConsoleHome', | ||
'datePattern', | ||
'pageSize', | ||
'viewType', | ||
'mapRootNoteId', | ||
'bookmarkFolder', | ||
'sorted', | ||
'top', | ||
'fullContentWidth', | ||
'shareHiddenFromTree', | ||
'shareAlias', | ||
'shareOmitDefaultCss', | ||
'shareRoot', | ||
'internalLink', | ||
'imageLink', | ||
'relationMapLink', | ||
'includeMapLink', | ||
'runOnNoteCreation', | ||
'runOnNoteTitleChange', | ||
'runOnNoteContentChange', | ||
'runOnNoteChange', | ||
'runOnChildNoteCreation', | ||
'runOnAttributeCreation', | ||
'runOnAttributeChange', | ||
'template', | ||
'inherit', | ||
'widget', | ||
'renderNote', | ||
'shareCss', | ||
'shareJs', | ||
'shareFavicon', | ||
'executeButton', | ||
'keepCurrentHoisting', | ||
'color', | ||
'toc', | ||
'excludeFromNoteMap', | ||
'docName', | ||
'launcherType', | ||
'builtinWidget', | ||
'baseSize', | ||
'growthFactor' | ||
); | ||
UPDATE attributes SET name = 'name', value = 'value' WHERE type = 'label' | ||
AND name NOT IN | ||
('inbox', 'disableVersioning', 'calendarRoot', 'archived', 'excludeFromExport', 'disableInclusion', 'appCss', | ||
'appTheme', 'hidePromotedAttributes', 'readOnly', 'autoReadOnlyDisabled', 'cssClass', 'iconClass', | ||
'keyboardShortcut', 'run', 'runOnInstance', 'runAtHour', 'customRequestHandler', 'customResourceProvider', | ||
'widget', 'noteInfoWidgetDisabled', 'linkMapWidgetDisabled', 'revisionsWidgetDisabled', | ||
'whatLinksHereWidgetDisabled', 'similarNotesWidgetDisabled', 'workspace', 'workspaceIconClass', | ||
'workspaceTabBackgroundColor', 'workspaceCalendarRoot', 'workspaceTemplate', 'searchHome', 'workspaceInbox', | ||
'workspaceSearchHome', 'sqlConsoleHome', 'datePattern', 'pageSize', 'viewType', 'mapRootNoteId', | ||
'bookmarkFolder', 'sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural', 'sortLocale', 'top', | ||
'fullContentWidth', 'shareHiddenFromTree', 'shareOmitDefaultCss', 'shareRoot', 'shareDescription', | ||
'shareRaw', 'shareDisallowRobotIndexing', 'shareIndex', 'displayRelations', 'hideRelations', 'titleTemplate', | ||
'template', 'toc', 'color', 'keepCurrentHoisting', 'executeButton', 'executeDescription', 'newNotesOnTop', | ||
'clipperInbox', 'internalLink', 'imageLink', 'relationMapLink', 'includeMapLink', 'runOnNoteCreation', | ||
'runOnNoteTitleChange', 'runOnNoteChange', 'runOnNoteContentChange', 'runOnNoteDeletion', 'runOnBranchCreation', | ||
'runOnBranchDeletion', 'runOnChildNoteCreation', 'runOnAttributeCreation', 'runOnAttributeChange', 'template', | ||
'inherit', 'widget', 'renderNote', 'shareCss', 'shareJs', 'shareFavicon'); | ||
UPDATE attributes SET name = 'name' WHERE type = 'relation' | ||
AND name NOT IN | ||
('inbox', 'disableVersioning', 'calendarRoot', 'archived', 'excludeFromExport', 'disableInclusion', 'appCss', | ||
'appTheme', 'hidePromotedAttributes', 'readOnly', 'autoReadOnlyDisabled', 'cssClass', 'iconClass', | ||
'keyboardShortcut', 'run', 'runOnInstance', 'runAtHour', 'customRequestHandler', 'customResourceProvider', | ||
'widget', 'noteInfoWidgetDisabled', 'linkMapWidgetDisabled', 'revisionsWidgetDisabled', | ||
'whatLinksHereWidgetDisabled', 'similarNotesWidgetDisabled', 'workspace', 'workspaceIconClass', | ||
'workspaceTabBackgroundColor', 'workspaceCalendarRoot', 'workspaceTemplate', 'searchHome', 'workspaceInbox', | ||
'workspaceSearchHome', 'sqlConsoleHome', 'datePattern', 'pageSize', 'viewType', 'mapRootNoteId', | ||
'bookmarkFolder', 'sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural', 'sortLocale', 'top', | ||
'fullContentWidth', 'shareHiddenFromTree', 'shareOmitDefaultCss', 'shareRoot', 'shareDescription', | ||
'shareRaw', 'shareDisallowRobotIndexing', 'shareIndex', 'displayRelations', 'hideRelations', 'titleTemplate', | ||
'template', 'toc', 'color', 'keepCurrentHoisting', 'executeButton', 'executeDescription', 'newNotesOnTop', | ||
'clipperInbox', 'internalLink', 'imageLink', 'relationMapLink', 'includeMapLink', 'runOnNoteCreation', | ||
'runOnNoteTitleChange', 'runOnNoteChange', 'runOnNoteContentChange', 'runOnNoteDeletion', 'runOnBranchCreation', | ||
'runOnBranchDeletion', 'runOnChildNoteCreation', 'runOnAttributeCreation', 'runOnAttributeChange', 'template', | ||
'inherit', 'widget', 'renderNote', 'shareCss', 'shareJs', 'shareFavicon'); | ||
UPDATE branches SET prefix = 'prefix' WHERE prefix IS NOT NULL AND prefix != 'recovered'; | ||
UPDATE options SET value = 'anonymized' WHERE name IN | ||
('documentId', 'documentSecret', 'encryptedDataKey', | ||
'passwordVerificationHash', 'passwordVerificationSalt', | ||
'passwordDerivedKeySalt', 'username', 'syncServerHost', 'syncProxy') | ||
AND value != ''; | ||
('documentId', 'documentSecret', 'encryptedDataKey', | ||
'passwordVerificationHash', 'passwordVerificationSalt', | ||
'passwordDerivedKeySalt', 'username', 'syncServerHost', 'syncProxy') | ||
AND value != ''; | ||
|
||
VACUUM; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE attributes SET value = 'contentAndAttachmentsAndRevisionsSize' WHERE name = 'orderBy' AND value = 'noteSize'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.