Problem/Motivation
Getting the error mentioned below while migrating:
[Drupal\Core\Database\DatabaseExceptionWrapper]
SQLSTATE[HY000]: General error: 1 no such table: agreement_type: SELECT COUNT(*) AS "expression"
Steps to reproduce
This problem occurs when an existing Drupal 7 site with agreement module is migrated to Drupal 9.
Proposed resolution
Use DrupalSqlBase instead of SqlBase class.
Remaining tasks
NA
User interface changes
NA
API changes
NA
Data model changes
NA
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_2-6.txt | 2.88 KB | srishtiiee |
| #6 | drupalsqlbase_instead_of_sqlbase-3232859-6.patch | 4.22 KB | srishtiiee |
| #2 | drupalsqlbase_instead_of_sqlbase-2.patch | 1.34 KB | srishtiiee |
Comments
Comment #2
srishtiiee commentedComment #3
narendrarComment #5
mradcliffeThank you for the patch.
It looks like the tests are failing due to changing the test class. I checked the current 8.x-2.x and 3.0.x branches, which both pass tests. So probably need to update both the test classes to account for the test failures. Would you be able to do that, @srishti.bankar?
Comment #6
srishtiiee commentedUploaded new patch with updated fixtures within tests.
Comment #9
mradcliffeThank you!
This looks good to me. Committed to 8.x-2.x and cherry-picked to 3.0.x.