Skip to content

Commit

Permalink
Define default entity tables, with BC for <4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Dec 15, 2023
1 parent c66a731 commit a3806f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions classes/local/entities/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
*/
class upgrade extends base {

/**
* Database tables that this entity uses
*
* To ensure backwards compatibility, return those defined by {@see get_default_table_aliases}
*
* @return string[]
*/
protected function get_default_tables(): array {
return array_keys($this->get_default_table_aliases());
}

/**
* Database tables that this entity uses and their default aliases
*
Expand Down

0 comments on commit a3806f5

Please sign in to comment.