Liste de tous les membres
Documentation des fonctions membres
JSchemaChangeitemmysql::buildCheckQuery |
( |
| ) |
|
|
protected |
Checks a DDL query to see if it is a known type If yes, build a check query to see if the DDL has been run on the database. If successful, the $msgElements, $queryType, $checkStatus and $checkQuery fields are populated. The $msgElements contains the text to create the user message. The $checkQuery contains the SQL query to check whether the schema change has been run against the current database. The $queryType contains the type of DDL query that was run (for example, CREATE_TABLE, ADD_COLUMN, CHANGE_COLUMN_TYPE, ADD_INDEX). The $checkStatus field is set to zero if the query is created
If not successful, $checkQuery is empty and , and $checkStatus is -1. For example, this will happen if the current line is a non-DDL statement.
- Renvoie:
- void
- Depuis:
- 2.5
Références $type, elseif, et null.
JSchemaChangeitemmysql::fixInteger |
( |
|
$type1, |
|
|
|
$type2 |
|
) |
| |
|
private |
Fix up integer. Fixes problem with MySQL integer descriptions. If you change a column to "integer unsigned" it shows as "int(10) unsigned" in the check query.
- Paramètres:
-
string | $type1 | the column type |
string | $type2 | the column attributes |
- Renvoie:
- string The original or changed column type.
- Depuis:
- 2.5
JSchemaChangeitemmysql::fixQuote |
( |
|
$string | ) |
|
|
private |
Fixes up a string for inclusion in a query. Replaces name quote character with normal quote for literal. Drops trailing semi-colon. Injects the database prefix.
- Paramètres:
-
string | $string | The input string to be cleaned up. |
- Renvoie:
- string The modified string.
- Depuis:
- 2.5
La documentation de cette classe a été générée à partir du fichier suivant :