-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofenhancementtechnical debt
Description
Problem
Currently, we're checking for the Database Type of an instance something like this:
$schema->getDatabasePlatform() instanceof PostgreSQL94PlatformIf we ever change the underlying structure, these checks might break.
Proposed solution
Add a new API method for ISchemaWrapper that will return the database type as a string and a few constants that map to the supported databases to compare the Database string too:
public CONST PostgreSQL94Platform = 'PostgreSQL94Platform';
....
public function getDatabaseType(): string;ChristophWurst
Metadata
Metadata
Assignees
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofenhancementtechnical debt