/Crystal/Manipulation/Mysql/Rename.php
PHP | 48 lines | 14 code | 21 blank | 13 comment | 0 complexity | 8631942802ee811609d98092c8c519dc MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- /**
- * Crystal DBAL
- *
- * An open source application for database manipulation
- *
- * @package Crystal DBAL
- * @author Martin Rusev
- * @link http://crystal.martinrusev.net
- * @since Version 0.1
- * @version 0.1
- */
- // ------------------------------------------------------------------------
- class Crystal_Manipulation_Mysql_Rename
- {
-
- function __construct($method, $params)
- {
-
-
-
- $this->rename = "RENAME TABLE" . Crystal_Helper_Mysql::add_apostrophe($params[0]);
-
- $this-> rename .= "TO";
-
- $this->rename .= Crystal_Helper_Mysql::add_apostrophe($params[1]);
-
-
- }
-
-
-
- public function __toString()
- {
- return $this->rename;
- }
-
-
- }
- //RENAME TABLE current_db.tbl_name TO other_db.tbl_name;