Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

DBForge create_database if not exists

$
0
0
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

Viewing all articles
Browse latest Browse all 14346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>