rake-db 2.10.17 → 2.10.19
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 +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2351,7 +2351,7 @@ const createDb = async (arg, config) => {
|
|
|
2351
2351
|
for (const options of toArray(arg)) {
|
|
2352
2352
|
await createOrDrop(options, options, config, {
|
|
2353
2353
|
sql({ database, user }) {
|
|
2354
|
-
return `CREATE DATABASE "${database}" OWNER "${user}"`;
|
|
2354
|
+
return `CREATE DATABASE "${database}"${user ? ` OWNER "${user}"` : ""}`;
|
|
2355
2355
|
},
|
|
2356
2356
|
successMessage({ database }) {
|
|
2357
2357
|
return `Database ${database} successfully created`;
|