Zine

open source content publishing system


Ticket #43 (closed defect: duplicate)

Opened 4 years ago

Last modified 3 years ago

Migrations (cloned)

Reported by: mitsuhiko Owned by:
Priority: critical Milestone: Zine 0.1
Component: plugins Version:
Keywords: Cc:

Description

Cloned from #42:


Both the core and the plugins need some sort of migration framework. We should provide basic support for the core and the plugins for easier migrations. In general database layout changes should be reduced to a minimum but often you can't avoid that.

I would propose the following rules for database changes:

  • once a plugin changed the database it will stay that way. no rollbacks on uninstallation
  • plugins may never alter tables they have not created themselves!
  • we add a migration_info table that contains the revision of the table and the table name for the update script.

Currently there is a way to register hand written update functions to the database layer and we will keep that but add a callable class that uses the proposed migration system from this ticket. We should then think about which databases we want to support and build functions that create alter statements for those databases.

Change History

comment:1 Changed 4 years ago by mitsuhiko

  • Status changed from new to closed
  • Resolution set to duplicate

grml

comment:2 Changed 3 years ago by mitsuhiko

  • Milestone changed from TextPress 0.2 to TextPress 0.1

Milestone TextPress? 0.2 deleted

Note: See TracTickets for help on using tickets.