During app installation the newly installed app might not yet be stored within
the application cache, thus failing to replace the `1` within the table
structure definition.
Fix this by setting the `skipCache` parameter to `true`. This will increase the
number of database queries, because applications will be checked once for each
defined table and for each defined FOREIGN KEY, but I don't see a simple fix
for this issue that avoids this increase in query count. Specifically we cannot
simply reset the application cache after inserting the application into
wcf1_application.
* @param string $name name of the database table
*/
protected function __construct($name) {
- $this->name = ApplicationHandler::insertRealDatabaseTableNames($name);
+ $this->name = ApplicationHandler::insertRealDatabaseTableNames($name, true);
}
/**
* @return $this this foreign key
*/
public function referencedTable($referencedTable) {
- $this->referencedTable = ApplicationHandler::insertRealDatabaseTableNames($referencedTable);
+ $this->referencedTable = ApplicationHandler::insertRealDatabaseTableNames($referencedTable, true);
return $this;
}