Add PDO connection config

This commit is contained in:
2024-06-03 20:13:45 -04:00
parent 1164dc7cc5
commit ecc13a30cf
4 changed files with 45 additions and 23 deletions

View File

@@ -61,6 +61,6 @@ class Definition
*/
public static function ensureKey(string $tableName): string
{
return str_replace('INDEX', 'UNIQUE INDEX', self::ensureIndexOn($tableName, 'key', [Configuration::idField()]));
return str_replace('INDEX', 'UNIQUE INDEX', self::ensureIndexOn($tableName, 'key', [Configuration::$idField]));
}
}