This repository has been archived by the owner. It is now read-only.

Migrate

jpoehls edited this page Aug 29, 2010 · 1 revision

MigrateCommand Class

Namespace: DotNetMigrations.Commands
Access: Internal
Inherits/Implements: CommandBase (abstract class)

Overview:

The MigrateCommand class is used to move the database up and down versions.

Usage:

  • db.exe migrate migrationName {"[connection string]"}
    • The above will migrate the database up all migration versions newer than it’s current versin.
  • db.exe migrate 0 migrationName {"[connection string]"}
    • The above will migrate the database down to the original version.
  • db.exe migrate 10 migrationName {"[connection string]"}
    • The above will migrate the database up or down to version 10 depending on if the current version is higher or lower than version 10.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.