我在更改学说 2 迁移中的表时遇到了一些问题。以下代码总是抛出错误:Operation 'Doctrine\DBAL\Platforms\AbstractPlatform::getAlterTableSQL' is not supported by platform。
这很奇怪,因为 sqlite 支持 alter table。
public function up(Schema $schema)
{
$user = $schema->getTable('user');
$user->addColumn('resellerId', 'integer', array(
'length' => '10',
'notnull' => true,
'unsigned' => true,
));
}