PHP Class DbPatch_Command_Patch_SQL

Author: Sandy Pleyte
Author: Martijn De Letter
Author: Rudi de Vries
Inheritance: extends DbPatch_Command_Patch_Abstract
Afficher le fichier Open project: dbpatch/dbpatch

Protected Properties

Свойство Type Description
$data array

Méthodes publiques

Méthode Description
apply ( ) : boolean Apply SQL Patch
create ( string $description, string $patchDirectory, string $patchPrefix ) : void Create Empty SQL Patch
fixSqliteSchemaChangedBug ( ) : DbPatch_Command_Patch_SQL Fix "database schema has changed" error
getContents ( ) : string
getDescription ( ) : string Return first line of the SQL Patch
getType ( ) : string

Method Details

apply() public méthode

Apply SQL Patch
public apply ( ) : boolean
Résultat boolean

create() public méthode

Create Empty SQL Patch
public create ( string $description, string $patchDirectory, string $patchPrefix ) : void
$description string
$patchDirectory string
$patchPrefix string
Résultat void

fixSqliteSchemaChangedBug() public méthode

The VACUUM option makes it harder to execute queries while other session (i.e. import command) modify the database. Reconnecting prevents the error.
See also: http://www.mail-archive.com/[email protected]/msg04887.html
public fixSqliteSchemaChangedBug ( ) : DbPatch_Command_Patch_SQL
Résultat DbPatch_Command_Patch_SQL

getContents() public méthode

public getContents ( ) : string
Résultat string

getDescription() public méthode

Return first line of the SQL Patch
public getDescription ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string
Résultat string

Property Details

$data protected_oe property

protected array $data
Résultat array