Repository navigation
Replace Atlas CE with Ptah Compat to plan the full Rebase schema - #84
Closed
denisvmedia wants to merge 12 commits into
Closed
denisvmedia wants to merge 12 commits into
denisvmedia wants to merge 12 commits into
Conversation
denisvmedia
marked this pull request as draft
November 13, 2026 20:28
denisvmedia
force-pushed
the
feat/ptah-native-migrations
branch
from
November 14, 2026 07:05
953ce07 to
e182d57
Compare
denisvmedia
force-pushed
the
feat/ptah-native-migrations
branch
from
November 14, 2026 07:12
e182d57 to
ac3365a
Compare
denisvmedia
force-pushed
the
feat/ptah-native-migrations
branch
from
November 16, 2026 14:59
177f473 to
f835eaf
Compare
denisvmedia
force-pushed
the
feat/ptah-native-migrations
branch
6 times, most recently
from
November 19, 2026 19:45
3740552 to
b42d6ba
Compare
denisvmedia
force-pushed
the
feat/ptah-native-migrations
branch
from
November 19, 2026 23:05
b42d6ba to
5bdb0cf
Compare
denisvmedia
marked this pull request as ready for review
November 19, 2026 23:24
Member
|
Thank you for this, and for the amount of care that went into it. Planning policies, functions, search and vector indexes, triggers and views in one pass is a real problem, and the PR makes the case for it well. I'm going to decline it, though. The planner under Closing this one and #86 together, since the docs depend on it. If you'd like to contribute in this area again, opening an issue first to agree on the direction would save you the work up front. Thanks again. |
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.
Why
Rebase previously kept policies, functions, search and vector objects, triggers,
and views outside the schema it gave Atlas CE. Ordinary
db generateanddb pushcould miss changes to objects Rebase already declares.What changed
schema that includes policies, Rebase's SQL functions, search and vector
indexes, triggers, and declared views.
provisioning, and migration revisions. Commit
backend/drizzle/ptah-managed.jsonwith the migrations so generation can recognize previously managed objects.
atlas.sum, and revision records. Anupgrade targeting Rebase 0.35.0 or its canaries switches existing projects
from Atlas to Ptah Compat.
the generated SQL that boot and recovery use.
A shared PostgreSQL dev server requires an explicit
PTAH_TRUST_REPLAY_SQL=1choice for trusted migration replay. Rebase marks its managed PGlite dev server
disposable. The website update is in #86.
Review by commit
909bcb05Install Ptah Compat 0.33.1 in Rebase projects.
f3b06c95Render the complete desired PostgreSQL schema.
05855ac6Scope plans to Rebase-managed objects and protect database-owned defaults.
5bc9aad5Prepare Ptah Compat arguments and settings.
3115e71cUse Ptah to plan
db generateanddb push.b77dc837Detect Ptah installs under isolated pnpm layouts.
f3b2b0eaSwitch existing projects to Ptah when upgrading to Rebase 0.35.
d0c63a3bLimit scratch database allocation and clean it up after a failed plan.
0de56c72Cover migration and scaffold flows in integration tests.
eb93777aApply generated search column rebuilds atomically and verify convergence.
46d0f41fReuse a managed database slot after its upstream connection closes.
5bdb0cf2Document Ptah setup and migration behavior.
Verification
On
5bdb0cf2, typecheck, 149 upgrade and doctor tests, and 14 managedPGlite integration tests passed. The full checks below ran with the
published
@stokaro/[email protected]on the identical source tree.and packed-package validation.
and BaaS template suites.
checks, and 91 admin browser tests.
Checks ran across Linux and macOS, with focused reruns for runner failures.
The search-column regression verifies that widening its source column
creates one migration and an unchanged schema creates no further migration.
Closes #82.