fix: use date columns for Evernote timestamps in DB mode#135
Open
yaniv-golan wants to merge 1 commit intovzhd1701:masterfrom
Open
fix: use date columns for Evernote timestamps in DB mode#135yaniv-golan wants to merge 1 commit intovzhd1701:masterfrom
yaniv-golan wants to merge 1 commit intovzhd1701:masterfrom
Conversation
The previous schema used created_time and last_edited_time column types which are auto-managed by Notion and get overwritten on any edit. New schema uses explicit date columns prefixed with "Evernote" for all imported metadata (Tags, URL, Created, Updated, Author, Imported), keeping Last Modified as Notion-native for tracking edits. Includes setup script (scripts/create_notion_db.py) using the official Notion API to create the database with correct schema and formula columns (Real Created, Real Updated). Also documents the full DB setup in the README.
546f7d2 to
9a54758
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
created_timeandlast_edited_timecolumn types, which are auto-managed by Notion and get overwritten on any page editdatecolumns prefixed with "Evernote" for all imported metadata, preserving original timestamps reliablyEvernote Authorfield (previously only available via--add-metacallout)Last Modifiedas Notion-native for tracking actual edits in NotionNew DB schema
Setup script
Includes
scripts/create_notion_db.pyusing the official Notion API to create the database with correct schema + optional formula columns (Real Created, Real Updated) that bridge imported and native Notion notes.Note on DB creation
Due to Notion internal API changes, programmatic database creation via
submitTransactionno longer works. Users must pre-create the database either manually or using the provided script before runningenex2notion --mode DB.Test plan