Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated hasSchemaTable function #1877

Merged
merged 1 commit into from
Sep 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/Phinx/Db/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,6 @@ public function getColumnForType($columnName, $type, array $options)
return $column;
}

/**
* @inheritdoc
*/
public function hasSchemaTable()
{
return $this->hasTable($this->getSchemaTableName());
}

/**
* @inheritDoc
*
Expand Down
9 changes: 0 additions & 9 deletions src/Phinx/Db/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,6 @@ public function setBreakpoint(MigrationInterface $migration);
*/
public function unsetBreakpoint(MigrationInterface $migration);

/**
* Does the schema table exist?
*
* @deprecated use hasTable instead.
*
* @return bool
*/
public function hasSchemaTable();

/**
* Creates the schema table.
*
Expand Down
8 changes: 0 additions & 8 deletions src/Phinx/Db/Adapter/AdapterWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,6 @@ public function unsetBreakpoint(MigrationInterface $migration)
return $this;
}

/**
* @inheritDoc
*/
public function hasSchemaTable()
{
return $this->getAdapter()->hasSchemaTable();
}

/**
* @inheritDoc
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Phinx/Db/Adapter/PdoAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function setConnection(PDO $connection)
$this->connection = $connection;

// Create the schema table if it doesn't already exist
if (!$this->hasSchemaTable()) {
if (!$this->hasTable($this->getSchemaTableName())) {
$this->createSchemaTable();
} else {
$table = new DbTable($this->getSchemaTableName(), [], $this);
Expand Down