Remove redundant method
This commit is contained in:
parent
9fbf9cf82a
commit
3fd4580721
@ -108,13 +108,15 @@ abstract class DB_Util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get database-specific sql to drop a table
|
* Drop the selected table
|
||||||
*
|
*
|
||||||
* @abstract
|
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @return string
|
* @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
|
* Return an SQL file with the database table structure
|
||||||
|
@ -24,19 +24,6 @@
|
|||||||
*/
|
*/
|
||||||
class Firebird_Util extends DB_Util {
|
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
|
* Create an SQL backup file for the current database's structure
|
||||||
*
|
*
|
||||||
|
@ -23,19 +23,6 @@
|
|||||||
*/
|
*/
|
||||||
class PgSQL_Util extends DB_Util {
|
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
|
* Create an SQL backup file for the current database's structure
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user