好兴奋Drupal 8终于进入了RC阶段!Drupal 8 beta 15之前是不提供升级方案的。如果你曾经像我一样在beta 6开始就用Drupal 8搭建网站并写了一大堆文章,那么下面的步骤可以帮助你移植到RC版本。
- Download beta 10 and do a fresh install.
- Download beta 6 database through `mysqldump ----skip-add-drop-table --insert-ignore`.
- compare node* tables. There are new columns in release. We need to change insert statments to ignore new columns. When necessary, specify default value to the columns (I specify "zh-hans" to langcode).
- Import beta 6 database to Drupal 8 rc1 site.
- If you are not able to reach clear cache page, install latest drush. run `drush cr` to rebuild cache
- open the site and monitor php error.log. You will get some syntax issues. About 10 in my case. Hack relative code to ignore syntax errors.
遗憾的是,我暂时没有想到代码合并的方法,以防止我修改的代码在下次升级的时候被覆盖。
板块
Drupal 版本