Generate SQL script for db using dbdeploy schema version table and delta scripts
author |
Luke Crouch at SourceForge (http://sourceforge.net) |
---|---|
version |
$Id: c5a3ef3c4fbb1896df2b223194a8e372a8b5649c $ |
package |
phing.tasks.ext.dbdeploy |
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
getAppliedChangeNumbers() : array
array
getLastChangeAppliedInDb() : int|mixed
int|mixed
The highest patch number that is applied in the db
deploy() : void
createOutputFile(string $file, bool $undo = false) : void
string
bool
generateSql(bool $undo = false) : string
bool
string
The sql
getDeltasFilesArray() : array
array
sortFiles(array $files, bool $undo) : void
array
bool
fileNeedsToBeRead(int $fileChangeNumber, string $lastChangeAppliedInDb) : bool
int
string
bool
True or false if patch file needs to be deployed
setUrl(string $url) : void
string
setUserId(string $userid) : void
string
setPassword(string $password) : void
string
setDir(string $dir) : void
string
setOutputFile(string $outputFile) : void
string
setUndoOutputFile(string $undoOutputFile) : void
string
setLastChangeToApply(int $lastChangeToApply) : void
int
setDeltaSet(string $deltaSet) : void
string
setCheckAll(bool $checkall) : void
bool
setAppliedBy(string $appliedBy) : void
string
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
TABLE_NAME : string
var |
---|
string
url : string
var |
---|
string
userid : string
var |
---|
string
password : string
var |
---|
string
dir : string
var |
---|
string
outputFile : string
var |
---|
string
undoOutputFile : string
var |
---|
string
deltaSet : string
var |
---|
string
lastChangeToApply : int
var |
---|
int
dbmsSyntax : object
var |
---|
object
appliedChangeNumbers : array
var |
---|
array
checkall : int
var |
---|
int
appliedBy : string
var |
---|
string
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project