开发者

Add Column using Doctrine to live site

开发者 https://www.devze.com 2023-01-27 16:18 出处:网络
I\'m about to push a site I\'ve been develop开发者_StackOverflowing using Code Igniter and Doctrine live.

I'm about to push a site I've been develop开发者_StackOverflowing using Code Igniter and Doctrine live.

I want to push it live in it's current state, but know I'll be adding features in the future that might require changing columns, changing enum values, and adding columns to my doctrine records.

Up to now I've been just dropping tables and recreating them using:

Doctrine::createTablesFromModels();

Obviously this isn't possible one the database starts filling up with live data. How can I add and alter the columns without dropping and recreating the tables from models each time?

Many thanks.


Use Migrations

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号