Repository navigation
Declarative schema for databases #42489
|
I could not find an existing discussion regarding this topic so I thought I'd start one. Since Magento 2.3 they have a feature called "Declarative schema". This is basically just an XML file defining what the table should look like, eliminating the need for migration files. The implementation in Laravel could be similar and use XML as well, or is could use a similar style to how migrations are right now. Let me know what you think! Any issues that would come up that I haven't thought about? |
Replies: 3 comments 2 replies
|
There is #39855 and laravel/ideas#944 in that regard. Maybe the discussion about it could be revived? |
|
It's 2025 now. Does anybody know if there's a solution to this? |
|
This could also be an alternative output format for dumping the schema |
There is #39855 and laravel/ideas#944 in that regard.
Maybe the discussion about it could be revived?
In a recent project, migrations got out of control and such a feature would simplify everything and would help with complexity.