mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-09 18:42:56 +00:00
fix recreation of temp. table if requested
table was just emptied by not removed
This commit is contained in:
parent
dc48e5da2c
commit
8cd08a6f08
|
@ -527,7 +527,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
}
|
||||
else {
|
||||
if (is_bool($override) && $override) {
|
||||
if (!$this->getResult("DELETE FROM `ttreviewid`"))
|
||||
if (!$this->getResult("DROP TABLE IF EXISTS `ttreviewid`"))
|
||||
return false;
|
||||
if (!$this->getResult($queryStr))
|
||||
return false;
|
||||
|
@ -568,7 +568,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
}
|
||||
else {
|
||||
if (is_bool($override) && $override) {
|
||||
if (!$this->getResult("DELETE FROM `ttapproveid`"))
|
||||
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttapproveid`"))
|
||||
return false;
|
||||
if (!$this->getResult($queryStr))
|
||||
return false;
|
||||
|
@ -609,7 +609,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
}
|
||||
else {
|
||||
if (is_bool($override) && $override) {
|
||||
if (!$this->getResult("DELETE FROM `ttstatid`"))
|
||||
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttstatid`"))
|
||||
return false;
|
||||
if (!$this->getResult($queryStr))
|
||||
return false;
|
||||
|
@ -650,7 +650,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
}
|
||||
else {
|
||||
if (is_bool($override) && $override) {
|
||||
if (!$this->getResult("DELETE FROM `ttcontentid`"))
|
||||
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttcontentid`"))
|
||||
return false;
|
||||
if (!$this->getResult($queryStr))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user