rake-db 2.10.17 → 2.10.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2372,7 +2372,7 @@ const createDb = async (arg, config) => {
|
|
|
2372
2372
|
for (const options of orchidCore.toArray(arg)) {
|
|
2373
2373
|
await createOrDrop(options, options, config, {
|
|
2374
2374
|
sql({ database, user }) {
|
|
2375
|
-
return `CREATE DATABASE "${database}" OWNER "${user}"`;
|
|
2375
|
+
return `CREATE DATABASE "${database}"${user ? ` OWNER "${user}"` : ""}`;
|
|
2376
2376
|
},
|
|
2377
2377
|
successMessage({ database }) {
|
|
2378
2378
|
return `Database ${database} successfully created`;
|