Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This issue is part of #2454513: [meta] Make Drupal 8 work with SQLite.
Drupal\system\Tests\Entity\EntityDefinitionUpdateTest
is failing because Drupal\Core\Database\Driver\sqlite\Schema::dropField()
does not handle possible changes to the primary key in the schema.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff.txt | 668 bytes | amateescu |
#3 | 2463263-3.patch | 1.46 KB | amateescu |
#1 | 2463263.patch | 828 bytes | amateescu |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedLet's fix it :)
Test run after:
Comment #2
dawehnerThe fix looks alright, but does that mean we should add some test coverage in
\Drupal\system\Tests\Database\SchemaTest
for that case?Comment #3
amateescu CreditAttribution: amateescu for Drupal Association commentedYup, good idea :)
Running
SchemaTest
with just the interdiff applied:And with the patch from #1:
Comment #4
dawehner@amateescu explained me the problem in person. It totally makes sense.
Comment #5
alexpottThis passes on postgres too. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 6cd48a6 and pushed to 8.0.x. Thanks!