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

How do revert the first migration #5

Closed
sergeushenecz opened this issue Jul 4, 2018 · 1 comment
Closed

How do revert the first migration #5

sergeushenecz opened this issue Jul 4, 2018 · 1 comment

Comments

@sergeushenecz
Copy link

sergeushenecz commented Jul 4, 2018

I have single migration

[Migration(1)]
    class FirstMigration : Migration
    {
        public override void Apply()
        {
            Database.AddTable("Test");
        }

        public override void Revert()
        {
            Database.RemoveTable("Test");
        }

How can i revert this is migration?

@dima117
Copy link
Member

dima117 commented Jul 5, 2018

Yes, you can. Use the --version 0 option.

@dima117 dima117 closed this as completed Jul 23, 2018
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

No branches or pull requests

2 participants