Skip to content

Migrate

Runs migrations against Didact's metadata database.

bash
didact migrate [--provider "<DB_PROVDER_KEY>" --connection-string "<DB_CONNECTION_STRING>"]

Options

  • --provider (string): The database provider key for your database provider of choice.
  • --connection-string (string): The connection string for the database.

WARNING

If --provider and --connection-string are specified in Didact CLI's config, then they are not necessary here.

Examples

Run migrations against the database and connection string that are already specified in the Didact CLI config.

bash
didact migrate

Run migrations against a SQL Server database, specifying the database provider and connection string.

bash
didact migrate --provider "SQLServer" --connection-string "localhost"

Proudly powered by VitePress