($this->_platform);
}
$this->_conn->executeStatement($this->_platform->getDropConstraintSQL($constraint->getQuotedName($this->_platform), $table));
}
public function dropForeignKey($foreignKey, $table)
{
if ($foreignKey instanceof ForeignKeyConstraint) {
Deprecation::trigger('doctrine/dbal', 'https://github.com/doctrine/dbal/issues/4798', 'Passing $foreignKey as a ForeignKeyConstraint object to %s is deprecated.' . ' Pass it as a quoted name instead.', __METHOD__);
$foreignKey = $foreignKey->getQuotedName($this->_platform);
}
if ($table instanceof Table) {
Deprecation::trigger('doctrine/dbal', 'https://github.com/doctrine/dbal/issues/4798', 'Passing $table as a Table object to %s is deprecated. Pass it as a quoted name instead.', __METHOD__);
$table = $table->getQuotedName($this->_platform);
}
$this->_conn->executeStatement($this->_platform->getDropForeignKeySQL($foreignKey, $table));
}
public function dropSequence($name)
{
$this->_conn->executeStatement($this->_platform->getDropSequenceSQL($name));
}
public function dropUniqueConstraint(string $name, string $tableName) : void
{
$this->_conn->executeStatement($this->_platform->getDropUniqueConstraintSQL($name, $tableName));
}
public function dropView($name)
{
$this->_conn->executeStatement($this->_platform->getDropViewSQL($name));
}
public function createSchemaObjects(Schema $schema) : void
{
$this->_execSql($schema->toSql($this->_platform));
}
public function createDatabase($database)
{
$this->_conn->executeStatement($this->_platform->getCreateDatabaseSQL($database));
}
public function createTable(Table $table)
{
$createFlags = AbstractPlatform::CREATE_INDEXES | AbstractPlatform::CREATE_FOREIGNKEYS;
$this->_execSql($this->_platform->getCreateTableSQL($table, $createFlags));
}
public function createSequence($sequence)
{
$this->_conn->executeStatement($this->_platform->getCreateSequenceSQL($sequence));
}
public function createConstraint(Constraint $constraint, $table)
{
$this->_conn->executeStatement($this->_platform->getCreateConstraintSQL($constraint, $table));
}
public function createIndex(Index $index, $table)
{
$this->_conn->executeStatement($this->_platform->getCreateIndexSQL($index, $table));
}
public function createForeignKey(ForeignKeyConstraint $foreignKey, $table)
{
$this->_conn->executeStatement($this->_platform->getCreateForeignKeySQL($foreignKey, $table));
}
public function createUniqueConstraint(UniqueConstraint $uniqueConstraint, string $tableName) : void
{
$this->_conn->executeStatement($this->_platform->getCreateUniqueConstraintSQL($uniqueConstraint, $tableName));
}
public function createView(View $view)
{
$this->_conn->executeStatement($this->_platform->getCreateViewSQL($view->getQuotedName($this->_platform), $view->getSql()));
}
public function dropSchemaObjects(Schema $schema) : void
{
$this->_execSql($schema->toDropSql($this->_platform));
}
public function dropAndCreateConstraint(Constraint $constraint, $table)
{
Deprecation::trigger('doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4897', 'AbstractSchemaManager::dropAndCreateConstraint() is deprecated.' . ' Use AbstractSchemaManager::dropIndex() and AbstractSchemaManager::createIndex(),' . ' AbstractSchemaManager::dropForeignKey() and AbstractSchemaManager::createForeignKey()' . ' or AbstractSchemaManager::dropUniqueConstraint()' . ' and AbstractSchemaManager::cr
Warning: Cannot modify header information - headers already sent by (output started at /home/gamemyca/public_html/wp-content/plugins/elementor/elementor.php:1) in /home/gamemyca/public_html/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at /home/gamemyca/public_html/wp-content/plugins/elementor/elementor.php:1) in /home/gamemyca/public_html/wp-includes/pluggable.php on line 1438