Doctrine 2.2 wants to recreate all my tables

前端 未结 1 1793
滥情空心
滥情空心 2021-01-26 03:54

I updated doctrine from 2.1 to 2.2 on a symfony 2.0 project.

But now every time i try to do php app/console doctrine:schema:update doctrine wants to recreat

相关标签:
1条回答
  • 2021-01-26 04:06

    Ok i've got the answer ... when upgrading from 2.1 to 2.2 doctrine now tries to specify the schema.

    In doctrine 2.1 : You can't specify the schema doctrine will create in public schema

    In doctrine 2.2 : If no schema is specified doctrine will write into the user schema and then in the public shema.

    So my tables were not in the right schema i had to specify it.

    0 讨论(0)
提交回复
热议问题