i've added new attribute in model:
/** * @orm\column(name="has_donation", type="boolean", options ={"default":false}) */ private $hasdonation; and tried running:
php app/console doctrine:schema:update --force which gave me following result:
updating database schema... database schema updated successfully! "1" queries executed the problem each time run schema:update command, same result - without making changes entities. idea why? thanks!
update here's out php app/console doctrine:schema:update --dump-sql:
alter table clinic change has_donation has_donation tinyint(1) default '0' not null;
first, try deleting cache.
then, try php app/console doctrine:schema:update --dump-sql see updated. these options "default": false differences not recorded sometimes. @ least on postgresql use.
you might need them run them manually.
tip our workflow:
1) setup entities
2) run php app/console doctrine:schema:update --force
3) run migrations add there details not transformed database
Comments
Post a Comment