mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed obsolete code from MySQLDatabase
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65484 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b4977f8500
commit
e6a95566d9
@ -252,23 +252,7 @@ class MySQLDatabase extends Database {
|
||||
* @param string $fieldSpec The new field specification
|
||||
*/
|
||||
public function alterField($tableName, $fieldName, $fieldSpec) {
|
||||
// This wee function was built for MoT. It will preserve the binary format of the content,
|
||||
// but change the character set
|
||||
/*
|
||||
$changes = $this->query("SELECT ID, `$fieldName` FROM `$tableName`")->map();
|
||||
*/
|
||||
|
||||
$this->query("ALTER TABLE `$tableName` CHANGE `$fieldName` `$fieldName` $fieldSpec");
|
||||
|
||||
// This wee function was built for MoT. It will preserve the binary format of the content,
|
||||
// but change the character set
|
||||
/*
|
||||
echo "<li>Fixing " . sizeof($changes) . " page's contnet";
|
||||
foreach($changes as $id => $text) {
|
||||
$SQL_text = Convert::raw2sql($text);
|
||||
$this->query("UPDATE `$tableName` SET `$fieldName` = '$SQL_text' WHERE ID = '$id'");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public function fieldList($table) {
|
||||
|
Loading…
Reference in New Issue
Block a user