29 if ( !$status->isOK() ) {
32 $conn = $status->getDB();
33 '@phan-var DatabasePostgres $conn';
37 $safeschema = $conn->addIdentifierQuotes( $schema );
39 if ( !$conn->schemaExists( $schema ) ) {
41 $conn->query(
"CREATE SCHEMA $safeschema AUTHORIZATION $safeuser", __METHOD__ );
43 return Status::newFatal(
'config-install-pg-schema-failed',
44 $this->
getOption(
'InstallUser' ), $schema );
48 return Status::newGood();
Create the PostgreSQL schema.
getDependencies()
Get a list of names or aliases of tasks that must be done prior to this task.to override string|strin...
getName()
Get the symbolic name of the task.string
execute()
Execute the task.
A class containing constants representing the names of configuration variables.
const DBmwschema
Name constant for the DBmwschema setting, for use with Config::get()
const DBuser
Name constant for the DBuser setting, for use with Config::get()
Postgres database abstraction layer.
Dependency bundle and execution context for installer tasks.