DBマイグレータの変換エラーについて
dotnetxp > DBマイグレータの変換エラーについて @ 2017/3/14 17:40 |
---|
BaserCMS4.0.2.1上のDBマイグレータにて、BaserCMS 3.0.13のバックアップファイルを変換すると下記エラーとなり処理されません。
なお、念のためbc_new_content_foldersのテーブルを削除しても同じ状況です。 解決策がありましたらご教授ください。 <環境> Ubuntu 14.04.5 LTS PHP 5.5.9 MySQL 5.5.54 BaserCMS 4.0.2.1 DBマイグレータ 4.0.1 <エラーメッセージ:デバッグモード1> Database Error エラー: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'bc_new_content_folders' already exists SQL Query: CREATE TABLE `center_cms3`.`bc_new_content_folders` ( `id` int(8) NOT NULL AUTO_INCREMENT, `folder_template` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `page_template` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `created` datetime DEFAULT NULL, `modified` datetime DEFAULT NULL, PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8, COLLATE=utf8_general_ci, ENGINE=InnoDB; 注意: このエラーメッセージをカスタマイズしたい場合は、 app/View/Errors/pdo_error.ctp を作成してください Stack Trace CORE/Baser/Model/Datasource/DboSource.php line 471 → PDOStatement->execute(array) CORE/Baser/Model/Datasource/DboSource.php line 437 → DboSource->_execute(string, array) CORE/Baser/Model/Datasource/DboSource.php line 3887 → DboSource->execute(string) CORE/Baser/Model/Datasource/DboSource.php line 3788 → DboSource->createTable(array) CORE/Baser/Controller/Component/BcManagerComponent.php line 818 → DboSource->createTableBySchema(array) APP/Plugin/BcDbMigrator/Controller/Component/BcDbMigratorComponent.php line 125 → BcManagerComponent->constructionTable(string, string) APP/Plugin/BcDbMigrator/Controller/Component/BcDbMigratorComponent.php line 107 → BcDbMigratorComponent->_createMigrationTables() APP/Plugin/BcDbMigrator/Controller/Component/BcDbMigratorComponent.php line 76 → BcDbMigratorComponent->_setUp() APP/Plugin/BcDbMigrator/Controller/MigratorController.php line 99 → BcDbMigratorComponent->migrate(string) APP/Plugin/BcDbMigrator/Controller/MigratorController.php line 57 → MigratorController->_migrate(array) [internal function] → MigratorController->admin_index() CORE/Cake/Controller/Controller.php line 491 → ReflectionMethod->invokeArgs(MigratorController, array) CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest) CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(MigratorController, CakeRequest) ROOT/index.php line 159 → Dispatcher->dispatch(CakeRequest, CakeResponse) ■BaserCMSのバージョン:4.0.10.1 |
dotnetxp > Re: DBマイグレータの変換エラーについて @ 2017/3/24 18:21 |
---|
解決策が見当たらず、やむ得ず100ページを移植しました。
その過程でコンテンツ配置の見直しもできたので結果オーライです。 また、BaserCMSではテーマにlogical_jp_baserを使用しており、こちらも修正を加え、なんとか移行を終えました。 BaserCMS 4になり、コンテンツ管理が大幅に改善されたので便利に使用しています。 ■BaserCMSのバージョン:4.0.10.1 |