You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if we could have an alias like Laravel has for re-running migrations from "fresh" state, and then re-running the seeds? Laravel has a migrate:fresh --seed command for this.
Please let me know if this is a welcome change so I can send a PR. If there's a different nomenclature that fits best kysely-ctl let me know! I think Laravel's nomenclature is clear enough and we could use the same.
Cheers!
The text was updated successfully, but these errors were encountered:
I just noticed Laravel actually has fresh AND refresh 🤔 refresh does the rollback and fresh just drops all tables.
I could maybe send a PR implementing just refresh first.
fresh seems like a VERY dangerous operation, as migrations are not always guaranteed to start from the first table's creation, or some tables are owned by other libraries - e.g. better-auth.
Is refresh basically rollback --all && latest?
The naming is ambiguous. It's essentially a data wipe or rollback to seed (when --seed is there).
There's already a way to achieve this without adding confusion of yet another command.
This seems like something that doesn't scale well - gets slow very fast when you have lots of migration files to go over and recreates indexes. Could be achieved with a plugin+dummy driver that goes over all ups and collects all tables that were created but not dropped, truncates them, and maybe even resets sequences.
The north star is Knex compatibility - this mixes Laravel with Knex concepts.
Hi there! I hope all is well!
I'm wondering if we could have an alias like Laravel has for re-running migrations from "fresh" state, and then re-running the seeds? Laravel has a
migrate:fresh --seed
command for this.Please let me know if this is a welcome change so I can send a PR. If there's a different nomenclature that fits best
kysely-ctl
let me know! I think Laravel's nomenclature is clear enough and we could use the same.Cheers!
The text was updated successfully, but these errors were encountered: