1
0
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:
Javi Fontan 2017-07-12 17:10:55 +02:00
parent a2a2840fea
commit 8257b5b839

View File

@ -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