美好的一天: 我有一个完美的Symfony 2数据库,然后不得不对数据库进行一些更改,我删除了一个实体并添加了另一个实体。我没有找到再次更新我的数据库的方法,所以我手动删除了所有表,希望再次创建它。 update schema命令不起作用;我收到以下错误:
...# php app/console doctrine:database:create
Created database for connection named `eregistry`
...# php app/console doctrine:generate:entities Eregistry
Generating entities for namespace "Eregistry"
> backing up Fields.php to Fields.php~
> generating Eregistry\EventBundle\Entity\Fields
> backing up FieldEvent.php to FieldEvent.php~
> generating Eregistry\EventBundle\Entity\FieldEvent
> backing up Participant.php to Participant.php~
> generating Eregistry\EventBundle\Entity\Participant
> backing up Event.php to Event.php~
> generating Eregistry\EventBundle\Entity\Event
> backing up Modality.php to Modality.php~
> generating Eregistry\EventBundle\Entity\Modality
> backing up Person.php to Person.php~
> generating Eregistry\EventBundle\Entity\Person
> backing up Domain.php to Domain.php~
> generating Eregistry\EventBundle\Entity\Domain
> backing up FieldData.php to FieldData.php~
> generating Eregistry\EventBundle\Entity\FieldData
...# php app/console doctrine:schema:update --force
[Doctrine\DBAL\Schema\SchemaException]
The table with name 'eregistry.event' already exists.
doctrine:schema:update [--complete] [--dump-sql] [--force] [--em[="..."]]
...#
数据库是刚创建的,它是如何给我的,并且说该表已经存在的例外? 这个问题可能是什么原因? 问候 阿贝尔