Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get started on PhinxAdapter #679

Merged
merged 8 commits into from
Jan 22, 2024
Merged

Get started on PhinxAdapter #679

merged 8 commits into from
Jan 22, 2024

Conversation

markstory
Copy link
Member

Get the rough draft of a shim adapter that will bridge between the new migrations backend and phinx's adapter interfaces. The new backend will create an instance of this adapter when running migrations and seeds. This will allow migrations to stay compatible with phinx until a future major release. I want the new backend to be opt-in initially so that we can release it, test and iterate and stabilize it when it is ready without risking broken releases.

I've run into a blocker with phinx though that I need to patch first. Several DTO classes have uninitialized properties that make using their public interfaces unsafe.

Get the rough draft of a shim adapter that will bridge between the new
migrations backend and phinx's adapter interfaces. The new backend will
create an instance of this adapter when running migrations and seeds.
This will allow migrations to stay compatible with phinx until
a future major release. I want the new backend to be opt-in initially
so that we can release it, test and iterate and stabilize it when it is
ready without risking broken releases.

I've run into a blocker with phinx though that I need to patch first.
Several DTO classes have uninitialized properties that make using their
public interfaces unsafe.
@markstory markstory marked this pull request as draft January 18, 2024 05:07
@markstory markstory marked this pull request as ready for review January 21, 2024 02:28
@markstory markstory merged commit 424224e into no-phinx Jan 22, 2024
9 of 11 checks passed
@markstory markstory deleted the phinx-adapter branch January 22, 2024 22:51
@markstory markstory linked an issue Feb 4, 2024 that may be closed by this pull request
3 tasks
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.

4.x Migrations without Phinx
1 participant