Jump to: navigation, search

Keystone/sql-migrate-extensions

< Keystone
Revision as of 17:14, 14 May 2013 by Ayoung (talk | contribs) (Created page with "The migrations are performed monolithically, but the separate backends can actually be separately versioned. While this works fine for core, it will not work for extensions. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The migrations are performed monolithically, but the separate backends can actually be separately versioned. While this works fine for core, it will not work for extensions. We need to make it simple and clear how to do migrations for extensions. The migrate_version table already supports this:

mysql> desc migrate_version; +-----------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------+--------------+------+-----+---------+-------+ | repository_id | varchar(250) | NO | PRI | NULL | | | repository_path | text | YES | | NULL | | | version | int(11) | YES | | NULL | | +-----------------+--------------+------+-----+---------+-------+


Each of the backends already support calling the central migrations via the db_sync mechanism.