Update sqlHandler.lua
This commit is contained in:
1 parent
28f20ef27e
commit
a0fcec5aea
1 file changed
+2
-2
@@ -8,12 +8,12 @@ function SQL.Create(tableName, columns)
|
||||
for i, column in pairs(columns) do
|
||||
table.insert(columnsList, string.format("%s %s", column.name, column.type))
|
||||
end
|
||||
|
||||
|
||||
local query = string.format("CREATE TABLE IF NOT EXISTS %s (%s);",
|
||||
tableName,
|
||||
table.concat(columnsList, ", ")
|
||||
)
|
||||
|
||||
|
||||
MySQL.query.await(query)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user