dimitriBouteille / wp-orm

WordPress ORM with Eloquent, an object-relational mapper that makes it enjoyable to interact with your database.
https://packagist.org/packages/dbout/wp-orm
MIT License
64 stars 5 forks source link

[FEATURE]: Use native Eloquent migration #28

Open dimitriBouteille opened 7 months ago

dimitriBouteille commented 7 months ago

Replace robmorgan/phinx by custom migration tool. The migration system should ideally take over the same logic and functionality as what is proposed by Laravel.

In order to make the system configurable, it is necessary to provide :

rafaucau commented 1 week ago

Maybe this would be a code inspiration on how it can be done in WordPress:

dimitriBouteille commented 1 week ago

Hi @rafaucau

Thanks for sharing the links, the goal of dbout/wp-orm is to avoid overusing third party dependencies in order to reduce problems. I think to start on a migration system as simple as possible with wp-cli.

I already started working on the subject by checking that the Dbout\WpOrm\Orm\Schemas\WordPressBuilder class works well: https://github.com/dimitriBouteille/wp-orm/pull/96

This new migration system is probably the last topic before releasing the v4 :)

dimitriBouteille commented 1 week ago

@rafaucau

For information, I updated the ticket with the desired features. If you have ideas, do not hesitate to suggest :)