1
Yii로 테스트 응용 프로그램을 만들고 첫 번째 마이 그 레이션을 만들었습니다. YII 내가 내 응용 프로그램 main.php에 내가 제대로 다른 곳에서 작동하고, SQLite는 라인이 주석하는 MySQL의 설정에도 불구하고 SQLite는 DB를 사용하고 생각하는 몇 가지 이유 Yii SQLite를 사용하려는 MySQL DB 마이그레이션
<?php
class m111128_223507_reverse_bed_patient extends CDbMigration
{
public function up()
{
$this->dropForeignKey('fk_bed_patient1', 'bed');
$this->dropColumn('bed', 'patient_id');
$this->addColumn('patient', 'bed_id', 'int(11)');
$this->addForeignKey('fk_patient_bed1', 'patient', 'bed_id', 'bed', 'id', 'NO ACTION', 'NO ACTION');
}
public function down()
{
echo "m111128_223507_reverse_bed_patient does not support migration down.\n";
return false;
}
}
.
첫 번째 마이 그 레이션을 시도 할 때이 오류가 발생합니다.
* 메시지 테이블 이부자리 예외 '해당 CDBException'에서 m111128_223507_reverse_bed_patient 드롭 칼럼 patient_id 적용 '떨어 뜨리 DB 컬럼 SQLite는 지원하지 않습니다.' in ...
여기서 내가 무엇을 놓치고 있습니까?