Skip to content

Add new command: create to add new migrations #815

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

Merged
merged 3 commits into from
May 9, 2025

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 6, 2025

This PR adds a new command named create. It lets users create new migration files. It has three flags: --empty if the user wants to create an empty file and --name if the user wants to pass a name instead of being prompted. Similarly to pull command it also has a flag called --json to output the migration file in json format.

I am adding documentation in a follow-up PR.

@github-actions github-actions bot temporarily deployed to Docs Preview May 6, 2025 18:06 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from 884e1a5 to aba2016 Compare May 6, 2025 18:07
@github-actions github-actions bot temporarily deployed to Docs Preview May 6, 2025 18:07 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from aba2016 to ec1ec59 Compare May 6, 2025 18:10
@github-actions github-actions bot temporarily deployed to Docs Preview May 6, 2025 18:10 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from ec1ec59 to a99f6ab Compare May 6, 2025 18:15
@github-actions github-actions bot temporarily deployed to Docs Preview May 6, 2025 18:15 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from a99f6ab to 6f0e157 Compare May 6, 2025 18:17
@github-actions github-actions bot temporarily deployed to Docs Preview May 6, 2025 18:17 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from 6f0e157 to d367836 Compare May 7, 2025 08:33
@github-actions github-actions bot temporarily deployed to Docs Preview May 7, 2025 08:33 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from d367836 to c06a01c Compare May 7, 2025 08:46
@github-actions github-actions bot temporarily deployed to Docs Preview May 7, 2025 08:46 Inactive
@kvch kvch force-pushed the migrations-creating-themselves branch from c06a01c to 8d33af5 Compare May 7, 2025 08:50
@github-actions github-actions bot temporarily deployed to Docs Preview May 7, 2025 08:50 Inactive
@kvch kvch requested a review from andrew-farries May 7, 2025 08:52
Copy link
Collaborator

@andrew-farries andrew-farries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a a nice feature 🥳

@github-actions github-actions bot temporarily deployed to Docs Preview May 7, 2025 15:28 Inactive
@github-actions github-actions bot temporarily deployed to Docs Preview May 7, 2025 15:33 Inactive
@kvch kvch requested a review from andrew-farries May 8, 2025 12:17
@kvch kvch merged commit 34c19af into main May 9, 2025
30 checks passed
@kvch kvch deleted the migrations-creating-themselves branch May 9, 2025 07:19
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.

2 participants