diff options
author | Evan Prodromou <evan@status.net> | 2010-08-10 23:36:13 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-08-10 23:36:13 -0700 |
commit | 41dfea163460bb216483e8e12fff7a8afefbb4fb (patch) | |
tree | 8049f397c1a39b1a49a7a0d3d6eac707f5f13e14 /lib/mysqlschema.php | |
parent | 3062cc270607ad60993e5e6d6e3977fab74508b0 (diff) | |
parent | 5c210f724a865830d0c39feba8386f495b18ee4f (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'lib/mysqlschema.php')
-rw-r--r-- | lib/mysqlschema.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/mysqlschema.php b/lib/mysqlschema.php index 455695366..f9552c1dc 100644 --- a/lib/mysqlschema.php +++ b/lib/mysqlschema.php @@ -50,21 +50,6 @@ class MysqlSchema extends Schema static $_single = null; protected $conn = null; - /** - * Constructor. Only run once for singleton object. - */ - - protected function __construct() - { - // XXX: there should be an easier way to do this. - $user = new User(); - - $this->conn = $user->getDatabaseConnection(); - - $user->free(); - - unset($user); - } /** * Main public entry point. Use this to get @@ -348,7 +333,7 @@ class MysqlSchema extends Schema } if (empty($name)) { - $name = "$table_".implode("_", $columnNames)."_idx"; + $name = "{$table}_".implode("_", $columnNames)."_idx"; } $res = $this->conn->query("ALTER TABLE $table ". |