Skip to content

Improve instructions on resetting migrations #4272

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

roji
Copy link
Member

@roji roji commented Mar 2, 2023

Fixes #4273

@roji roji force-pushed the ResettingMigrations branch from c58576a to 79b0b85 Compare March 2, 2023 10:22

```sql
INSERT INTO [__EFMigrationsHistory] ([MIGRATIONID], [PRODUCTVERSION])
VALUES (N'<full_migration_timestamp_and_name>', N'<EF_version>');
Copy link

Choose a reason for hiding this comment

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

Should include instruction how to generate the timestamp, in what format.

Copy link
Member Author

Choose a reason for hiding this comment

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

@khteh as I've already mentioned, you're supposed to copy-paste this line from the generated SQL script.

@roji roji merged commit 9c5aa41 into dotnet:main Mar 8, 2023
@roji roji deleted the ResettingMigrations branch March 8, 2023 14:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to remove all previous migrations and create a new "Initial" migration from existing stable DB?
3 participants