Welcome Guest, Not a member yet? Register   Sign In
DBForge create_database if not exists
#1

Like `create_table`, the `create_database` method should have `$exists = false`
Such that:
`create_database("name", true)` will render a "CREATE DATABASE `name` IF NOT EXISTS"
and in case it returns an error, will NOT call "show_error" (which exists the page)

This is changing just a few lines of code, with not DB engine compatibility issue to my knowledge
Reply
#2

Well, there are databases that don't support this ... we have to go through the docs of all platforms and see which ones do and which ones don't.
Other than that, yes - I don't see a problem with this either.
Reply
#3

Thanks. Because there were no objections, I took the liberty to create a pull request
Reply




Theme © iAndrew 2016 - Forum software by © MyBB