Skip to content

urldatabasemigration

Troy Murray edited this page Sep 21, 2011 · 3 revisions

Database Migrations via URL

Starting with version 0.8.0 of DBMigrate, you can now migrate your database by calling a URL

To perform migrations via URL you'll need to use the password URL parameter along with the password you have specified in your /config/settings.cfm to reload the application (you do have one, right???).

You'll also need to use the new URL parameter migrateToVersion and specify the version number of the migration to change your database to.

Syntax

https:///rewrite.cfm?controller=wheels&action=wheels&view=plugins&name=dbmigrate&password=&migrateToVersion=99999999999999

  • Use "migrateToVersion=99999999999999" to migrate to the latest version of your database.
  • Use "migrateToVersion=0" to remove all migrations from your database
  • Use "migrateToVersion=12345678912345" to migrate to that specific database version
Clone this wiki locally