[FLOW3-general] Adding new field into table

"Christian Müller (Kitsunet)" christian.mueller at typo3.org
Mon Nov 28 10:49:09 CET 2011


On 28/11/11 10:32, Rayuth You wrote:
> Hi Christian
>
> What i got from your answer is:
> I need to write new field and new function setter and getter in
> \Domain\Model\CoffeeBean.php, and run
> ./flow3 doctrine:migrationgenerate
> ./flow3 doctrine:migrate
>
> Automatically, it will write into my database. Am I right? or what I get
> wrong?
>

Hi Rayuth,

right, but depending if you ever ran doctrine:migrationgenerate, I would 
would advice to run it once in the beginning with your current code, 
just so you have a base migration. Then do the steps above. And yes, the 
migration scripts contain all needed database commands to bring your 
database to the point where your code is and with doctrine:migrate they 
are executed.

Cheers,
Christian


More information about the FLOW3-general mailing list