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

[FEATURE]: Manual control migrations #2515

Open
AlecsFarias opened this issue Jun 14, 2024 · 0 comments
Open

[FEATURE]: Manual control migrations #2515

AlecsFarias opened this issue Jun 14, 2024 · 0 comments
Labels
drizzle/kit enhancement New feature or request priority Will be worked on next

Comments

@AlecsFarias
Copy link

Describe what you want

Seeing that are 2 (at 14/06/2024) or more issues that complains about migrations merge on different branchs or the fact that not having an schema simple results on drop table migrations I think it would be an good feature to be able to control it on a manual way.

My ideia:

  • Migration creation command:
    • Migrations can have the file name with timestamp (more accurate and less conflicting when working with more than one person on the project)
    • Do not consider real schemas in the project (since not having a nested project with a crucial schema would (today) result in a migration that would eliminate the table)
    • Consider control not using the json journal, this will stab the project in relation to the time relationship of the migrations to each other
    • Considering the above, maybe just use it to directly write SQL control statements that can be arranged and executed at the desired time
    • extra: maybe provide a ts function (like schema declaration) for down and up to use type safety in table control on migration write
@AlecsFarias AlecsFarias added the enhancement New feature or request label Jun 14, 2024
@L-Mario564 L-Mario564 added drizzle/kit priority Will be worked on next labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drizzle/kit enhancement New feature or request priority Will be worked on next
Projects
None yet
Development

No branches or pull requests

2 participants