mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
B #5225: delete tables before creating them
This commit is contained in:
parent
a2a2840fea
commit
8257b5b839
@ -98,6 +98,8 @@ class OneDBBacKEnd
|
||||
|
||||
schema = get_schema(type, version)
|
||||
|
||||
@db.run "DROP TABLE IF EXISTS #{n};"
|
||||
|
||||
sql = "CREATE TABLE #{n} (#{schema});"
|
||||
|
||||
@db.run sql
|
||||
|
Loading…
Reference in New Issue
Block a user