Remove redundant method

This commit is contained in:
Timothy Warren 2014-03-31 16:35:02 -04:00
parent 9fbf9cf82a
commit 3fd4580721
3 changed files with 5 additions and 29 deletions

View File

@ -108,13 +108,15 @@ abstract class DB_Util {
}
/**
* Get database-specific sql to drop a table
* Drop the selected table
*
* @abstract
* @param string $name
* @return string
*/
abstract public function delete_table($name);
public function delete_table($name)
{
return 'DROP TABLE "'.$name.'"';
}
/**
* Return an SQL file with the database table structure

View File

@ -24,19 +24,6 @@
*/
class Firebird_Util extends DB_Util {
/**
* Drop the selected table
*
* @param string $name
* @return string
*/
public function delete_table($name)
{
return 'DROP TABLE "'.$name.'"';
}
// --------------------------------------------------------------------------
/**
* Create an SQL backup file for the current database's structure
*

View File

@ -23,19 +23,6 @@
*/
class PgSQL_Util extends DB_Util {
/**
* Database-specific SQL for dropping a table
*
* @param string $name
* @return string
*/
public function delete_table($name)
{
return 'DROP TABLE "'.$name.'"';
}
// --------------------------------------------------------------------------
/**
* Create an SQL backup file for the current database's structure
*