I've just upgraded from alpha-15 to current dev.
Adding a new index causes a crash:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'server_id' cannot be null: INSERT INTO {search_api_task} (type, server_id, index_id, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => trackItems [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => aaargh [:db_insert_placeholder_3] => a:2:{s:10:"datasource";s:11:"entity:node";s:4:"page";i:0;} ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 756 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
| Comment | File | Size | Author |
|---|
Comments
Comment #2
joachim commentedThe new index is created successfully though -- once I go back to the main admin page I can see it and edit it.
Comment #3
igasi commentedI've the same bug, I upgrated from alpha-15 to alpha-16, the error appears when create a new index or edit it, and change datasources or bundles too. Any idea or clue to solve the problem?
The second problem is after create/edit an index, this appears, but the "Index now" options is disabled, and I couldn't see any node to be indexed, the progress bar show me 0/0 Indexed.
Comment #4
OlgaRabodzei commentedHi!
I also faced this problem. As I suppose the module update has missed hook_update_N function. As a primary solution try to reinstall module, the one helped me.
Comment #5
borisson_During the alpha phase, we don't provide an upgrade path.
Comment #6
lucasgrecco commentedFor those who need this schema update, here it is!
Just run drush updb and be happy!
Comment #7
lnunesbrComment #9
lnunesbrdon't look to be a support request but a real bug, if schema has changed in current versions, it should be expected to have schema updated for older versions as well through hook_update_n
Comment #10
lnunesbr@lucasgrecco, please review guidelines to submit a patch at https://www.drupal.org/patch/submit
Comment #11
lucasgrecco commentedComment #12
borisson_It is explicitly mentioned that we don't support an upgrade path while still in alpha phase. Sorry that you feel this is a bug, but since it's well documented this is a support request.
Comment #13
lucasgrecco commentedComment #14
borisson_I'll leave this open for @drunken monkey to decide, but I'd prefer not to start putting in update hooks before the beta release, even if it's provided. We won't add update hooks for other api breaking things, during alpha, so that would create a really odd way of working.
In any case, this is not a bug report, because we stated that update hooks will not be provided.
I also think that we'd need to write tests for update hooks as well, similar to how core does it. Not sure about other's opinions about that though.
If this will get in, there's a couple of issues with the patch:
Please make sure you don't commit .idea files.
(This is something where a global gitignore will help you out: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore)
Indentation here looks off.
Indentation issues here as well.
Comment #15
drunken monkeyThanks, Joris, for handling this!
Please, everyone, read the release notes and just do such necessary changes manually when updating.