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|mixedThe 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
stringThe sql
getDeltasFilesArray() : array
array
sortFiles(array $files, bool $undo) : void
array
bool
fileNeedsToBeRead(int $fileChangeNumber, string $lastChangeAppliedInDb) : bool
int
string
boolTrue 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
stringName of this task
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe 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