diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 54d809fdd..e0b22a4f0 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -911,8 +911,8 @@ class RelationsViews(models.Model):                  if table_type == 'VIEW':                      return                  elif 'TABLE' in table_type: -                    q = "DROP TABLE %s" -                    cursor.execute(q, [cls._meta.db_table]) +                    q = "DROP TABLE IF EXISTS %s" % cls._meta.db_table +                    cursor.execute(q)                  cursor.execute(cls.CREATE_SQL)                  return True | 
