wip
This commit is contained in:
@ -349,7 +349,7 @@ class Database {
|
|||||||
}
|
}
|
||||||
$tableName = Config::getValue( 'database/dbPrefix' ) . $tableName;
|
$tableName = Config::getValue( 'database/dbPrefix' ) . $tableName;
|
||||||
$sql = "{$action} FROM `{$tableName}` WHERE ";
|
$sql = "{$action} FROM `{$tableName}` WHERE ";
|
||||||
$validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS'];
|
$validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS', 'IN'];
|
||||||
$validDelimiters = ['AND', 'OR'];
|
$validDelimiters = ['AND', 'OR'];
|
||||||
$values = [];
|
$values = [];
|
||||||
while ( $whereCount > 2 ) {
|
while ( $whereCount > 2 ) {
|
||||||
|
@ -66,14 +66,11 @@ class Model {
|
|||||||
$ids[] = $id;
|
$ids[] = $id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ids;
|
return [ $this->tableName => $ids ];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uninstallResources() {
|
public function uninstallResources() {
|
||||||
// this one needs some work
|
// this one needs some work
|
||||||
// should probably save the created resource ID's or something and remove them.
|
|
||||||
// presumably this isn't a big issue because i would imagine the table is removed
|
|
||||||
// there may be future instances where you can create resources for other tables
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user