This commit is contained in:
Joey Kimsey
2025-02-25 13:09:01 -05:00
parent cfa53c9e70
commit 89d30a8d36
2 changed files with 2 additions and 5 deletions

View File

@ -349,7 +349,7 @@ class Database {
}
$tableName = Config::getValue( 'database/dbPrefix' ) . $tableName;
$sql = "{$action} FROM `{$tableName}` WHERE ";
$validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS'];
$validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS', 'IN'];
$validDelimiters = ['AND', 'OR'];
$values = [];
while ( $whereCount > 2 ) {

View File

@ -66,14 +66,11 @@ class Model {
$ids[] = $id;
}
}
return $ids;
return [ $this->tableName => $ids ];
}
public function uninstallResources() {
// 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;
}