我刚刚运行 composer update - 来获取最新版本的 Symfony 2.2.1(和相关的包),现在当我运行doctrine:schema:update
它想要更新所有表时:
ALTER TABLE core_billing_account ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_billing_account_priority ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_billing_account_status ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_connection ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_connection_custom_field ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_connection_services ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_country ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_currency ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_customer_hierarchy ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_customer_tariff ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_extra_cost_type ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_mno ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_mno_services ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_mno_status ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_sim ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_size_uom ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_tax_rate ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_time_uom ALTER COLUMN id INT IDENTITY NOT NULL;
ALTER TABLE core_usage ALTER COLUMN id INT IDENTITY NOT NULL
这失败了,因为 MSSQL 不喜欢语法 - 但我不明白为什么 - 我只添加了一个新实体 ( core_usage
) 但它想更新每个表。我已经尝试清除缓存但没有区别......帮助!
更新
删除和重新创建数据库时也会发生... DoctrineBundle repo 上报告的问题