Skip to content

Commit

Permalink
Get legacy TaxonomyTerm db fields from the db table
Browse files Browse the repository at this point in the history
The ORM doesn't know about the legacy fields that moved to other tables
anymore.
  • Loading branch information
michalkleiner committed Mar 16, 2021
1 parent 4227498 commit 9bfe5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dev/AT4xMigrationTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function run($request)
}

$versionedFields = array_keys(Config::inst()->get(Versioned::class, 'db_for_versions_table'));
$termTableFields = array_keys($schema->databaseFields(TaxonomyTerm::class, false));
$termTableFields = DB::query(sprintf('SHOW COLUMNS FROM "%s"', $termTable))->column();

DB::get_conn()->withTransaction(function () use ($schema, $termTable, $termTableFields, $versionedFields) {

Expand Down

0 comments on commit 9bfe5ea

Please sign in to comment.