How to upgrade Drupal 8 from beta 6 to rc1

By admin, 9 十月, 2015

First, it's really a bad idea to use Drupal 8 beta version on production site like me. Because Drupal 8 beta release do not provide a way to upgrade between beta versions. The database and API are not frozen at all.

If you are unlucky like me, you can try following steps:

  1. Download beta 10 and do a fresh install.
  2. Download beta 6 database through `mysqldump ----skip-add-drop-table --insert-ignore`.
  3. 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).
  4. Import beta 6 database to Drupal 8 rc1 site.
  5. If you are not able to reach clear cache page, install latest drush. run `drush cr` to rebuild cache
  6. 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.

标签

评论3

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"