Skip to content

Conversation

@rmottley-hiro
Copy link
Contributor

  • Migrate schema from public to stacks-blockchain-api. Permission to start migration requires affirmative consent from user

Closes #2373

BREAKING CHANGE: This change can be made without a full rebuild from genesis. However, it is considered breaking in the interest of data safety

Testing information

Testing is recommended. Ensure PG_OLD_SCHEMA matches the current schema name in your database. PG_SCHEMA is pre-set, but can be modified as the user wishes. Uncomment PG_MIGRATE_SCHEMA_ON_STARTUP (app will fail to start until this is set as a value to prevent accidental migration)

Checklist

  • Code is commented where needed
  • Unit test coverage for new or modified code paths
  • npm run test passes
  • Changelog is updated
  • Tag 1 of @rafaelcr or @zone117x for review

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Vercel deployment URL: https://stacks-blockchain-phbdfydyl-hirosystems.vercel.app 🚀

@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rafaelcr
Copy link
Collaborator

Thanks for this PR @rmottley-hiro ! If we merge this change into the next branch we don't need to add the extra steps for users to accept this change as it will be breaking by default. Let's discuss this on monday 👍

@rmottley-hiro
Copy link
Contributor Author

Thanks for this PR @rmottley-hiro ! If we merge this change into the next branch we don't need to add the extra steps for users to accept this change as it will be breaking by default. Let's discuss this on monday 👍

Sounds good! 👍

@rmottley-hiro rmottley-hiro marked this pull request as ready for review December 3, 2025 20:07
Copy link
Collaborator

@rafaelcr rafaelcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@rafaelcr
Copy link
Collaborator

rafaelcr commented Dec 3, 2025

@rmottley-hiro there's just one broken test but feel free to merge after that is fixed 👍 thanks!

- Migrate schema from public to stacks-blockchain-api.

BREAKING CHANGE: This change will require resyncing from genesis
@rmottley-hiro rmottley-hiro merged commit eb183cf into next Dec 3, 2025
26 checks passed
@rmottley-hiro rmottley-hiro deleted the ram/issue-2373 branch December 3, 2025 21:46
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.

Update default schema

3 participants