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