我使用Django1.2和1.3以及MySql后端。
在向南迁移我的MySql数据库时,偶尔会收到一条错误消息:
! Error found during real run of migration! Aborting.
! Since you have a database that does not support running
! schema-altering statements in transactions, we have had
! to leave it in an interim state between migrations.
...
! The South d
在数据库迁移到云之后,我们需要将本地数据库与Azure云数据库系统实时同步。
这是数据库系统
SQL Server -->将迁移到Azure Sql。
PostgreSQL -->将迁移到Azure VM (IAAS)。
MySQL -->将迁移到Azure MYSQL。
DB2 -->将迁移到Azure VM (IAAS)。
请让我知道我可以通过哪些选项来实现它。
我希望使用生成数据库迁移脚本。
我的一个客户有mysql数据库,另一个有mssql,我们在开发环境中使用sqlite。
如果我使用php artisan doctrine:migrations:diff生成脚本,那么它将从以下行开始:
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
如何能够从实体类中的更