@@ 56-64 (lines=9) @@ | ||
53 | return static::$db_primarykeys[$table]; |
|
54 | } |
|
55 | ||
56 | public static function textColumns($database) |
|
57 | { |
|
58 | $query = "SELECT TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS "; |
|
59 | $query .= "WHERE 1 "; |
|
60 | $query .= "AND TABLE_SCHEMA = ? "; |
|
61 | $query .= "AND ( DATA_TYPE LIKE '%char%' OR DATA_TYPE LIKE '%text%' OR DATA_TYPE LIKE '%BLOB%' )"; |
|
62 | ||
63 | return Database::select($query, array($database)); |
|
64 | } |
|
65 | ||
66 | } |
@@ 155-163 (lines=9) @@ | ||
152 | } |
|
153 | } |
|
154 | ||
155 | public function getEngines($database) |
|
156 | { |
|
157 | $query = ''; |
|
158 | $query .= 'SELECT table_name, engine '; |
|
159 | $query .= 'FROM information_schema.tables '; |
|
160 | $query .= 'WHERE table_schema = ? '; |
|
161 | ||
162 | return Database::select($query, array($database)); |
|
163 | } |
|
164 | ||
165 | /** |
|
166 | * @param string $engine |
|
@@ 201-209 (lines=9) @@ | ||
198 | } |
|
199 | } |
|
200 | ||
201 | public function getCollations($database) |
|
202 | { |
|
203 | $query = ''; |
|
204 | $query .= 'SELECT table_name, table_collation '; |
|
205 | $query .= 'FROM information_schema.tables '; |
|
206 | $query .= 'WHERE table_schema = ? '; |
|
207 | ||
208 | return Database::select($query, array($database)); |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * @param string $collation |