Skip to content

feat: add db update command for schema modification and option management#29

Merged
andrzejchm merged 1 commit into
mainfrom
feat/21-24-db-update
Apr 7, 2026
Merged

feat: add db update command for schema modification and option management#29
andrzejchm merged 1 commit into
mainfrom
feat/21-24-db-update

Conversation

@andrzejchm
Copy link
Copy Markdown
Owner

Database schemas couldn't be modified after creation — adding columns, removing stale properties, renaming fields, or cleaning up accidentally-created select options all required the Notion UI. This adds notion db update <id> with --add-prop, --remove-prop, --rename-prop, --set-options, and --title flags backed by the SDK's dataSources.update() API.

Closes #21, closes #24

…ment

Adds 'notion db update <id>' with flags to modify database schemas:
  --add-prop    Add new properties (reuses existing prop definition parser)
  --remove-prop Remove properties
  --rename-prop Rename properties
  --set-options Replace select/multi_select options
  --title       Update database title

Uses the Notion SDK's dataSources.update() API. Includes 28 new tests
covering all operations and error cases.

Closes #21
Closes #24
@andrzejchm andrzejchm temporarily deployed to integration-tests April 7, 2026 19:17 — with GitHub Actions Inactive
@andrzejchm andrzejchm merged commit a6605af into main Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to manage select/multi-select options on existing databases Add command to modify database schema (add/remove/rename properties)

1 participant