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

Question - How to mark one-time migration as run #546

Closed
mattjones0111 opened this issue Jun 21, 2024 · 3 comments
Closed

Question - How to mark one-time migration as run #546

mattjones0111 opened this issue Jun 21, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mattjones0111
Copy link

When applying grate to an existing codebase which already has an established schema, I'd like to create an 'initial state' migration which contains the schema creation up to that point, but not actually run it at the next deploy. How do I create a migration but mark it as already executed?

@erikbra
Copy link
Owner

erikbra commented Jun 21, 2024

That would be exactly what the --baseline switch does

https://erikbra.github.io/grate/configuration-options/

@mattjones0111
Copy link
Author

Ah. It helps to RTFM I guess. Thank you for the pointer.

@erikbra
Copy link
Owner

erikbra commented Jun 23, 2024

The manual IS a bit F here and there, and not always as easy as it should be to understand. If you have some suggestions, they are more than welcome! Glad you're helped!

@erikbra erikbra added the documentation Improvements or additions to documentation label Jun 24, 2024
@erikbra erikbra self-assigned this Jun 24, 2024
@erikbra erikbra closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants