if ($this->test) {
if (in_array($tableName, $this->existingTables)) {
if (isset($this->knownTables[$tableName]) && $this->knownTables[$tableName] != $this->package->packageID) {
- throw new SystemException("Can not recreate table '.$tableName.'. A package can only overwrite own tables.");
+ throw new SystemException("Can not recreate table '".$tableName."'. A package can only overwrite own tables.");
}
else {
if (!isset($this->conflicts['CREATE TABLE'])) $this->conflicts['CREATE TABLE'] = array();
protected function executeAddColumnStatement($tableName, $columnName, $columnData) {
if ($this->test) {
if (!isset($this->knownTables[$tableName])) {
- throw new SystemException("Can not add column '".$columnName."' to table '.$tableName.'.");
+ throw new SystemException("Can not add column '".$columnName."' to table '".$tableName."'.");
}
}
else {
if ($this->test) {
if ($ownerPackageID = $this->getColumnOwnerID($tableName, $oldColumnName)) {
if ($ownerPackageID != $this->package->packageID) {
- throw new SystemException("Can not alter column '.$oldColumnName.'. A package can only change own columns.");
+ throw new SystemException("Can not alter column '".$oldColumnName."'. A package can only change own columns.");
}
}
}
if ($this->test) {
if ($ownerPackageID = $this->getColumnOwnerID($tableName, $columnName)) {
if ($ownerPackageID != $this->package->packageID) {
- throw new SystemException("Can not drop column '.$columnName.'. A package can only drop own columns.");
+ throw new SystemException("Can not drop column '".$columnName."'. A package can only drop own columns.");
}
}
}
if ($this->test) {
if ($ownerPackageID = $this->getIndexOwnerID($tableName, $indexName)) {
if ($ownerPackageID != $this->package->packageID) {
- throw new SystemException("Can not drop index '.$indexName.'. A package can only drop own indices.");
+ throw new SystemException("Can not drop index '".$indexName."'. A package can only drop own indices.");
}
}
}
if (in_array($tableName, $this->existingTables)) {
if (isset($this->knownTables[$tableName])) {
if ($this->knownTables[$tableName] != $this->package->packageID) {
- throw new SystemException("Can not drop table '.$tableName.'. A package can only drop own tables.");
+ throw new SystemException("Can not drop table '".$tableName."'. A package can only drop own tables.");
}
}
else {