Class JSchemaChangeitemSqlsrv

Description

Checks the database schema against one SQL Server DDL query to see if it has been run.

  • since: 2.5

Located in /libraries/cms/schema/changeitem/sqlsrv.php (line 19)

JSchemaChangeitem
   |
   --JSchemaChangeitemSqlsrv
Method Summary
 void buildCheckQuery ()
Variables
Methods
buildCheckQuery (line 38)

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.

  • since: 2.5
  • access: protected
void buildCheckQuery ()

Redefinition of:
JSchemaChangeitem::buildCheckQuery()
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.

Inherited Methods

Inherited From JSchemaChangeitem

 JSchemaChangeitem::__construct()
 JSchemaChangeitem::buildCheckQuery()
 JSchemaChangeitem::check()
 JSchemaChangeitem::fix()
 JSchemaChangeitem::getInstance()

Documentation generated on Tue, 19 Nov 2013 15:14:18 +0100 by phpDocumentor 1.4.3