@heroku-cli/plugin-pg-v5
Advanced tools
Comparing version 8.6.0 to 8.7.0
@@ -13,3 +13,3 @@ 'use strict' | ||
let db = await fetcher.addon(app, args.database) | ||
if (util.essentialPlan(db)) throw new Error('You can’t perform this operation on Essential-tier databases.') | ||
if (util.essentialPlan(db)) throw new Error("You can't create a custom credential on Essential-tier databases.") | ||
@@ -16,0 +16,0 @@ let data = { |
@@ -19,3 +19,3 @@ 'use strict' | ||
if (util.essentialPlan(db)) { | ||
throw new Error('Essential-tier databases support only one default credential.') | ||
throw new Error("You can't destroy the default credential on Essential-tier databases.") | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -19,4 +19,4 @@ 'use strict' | ||
if (util.essentialPlan(db) && cred !== 'default') { | ||
throw new Error('Essential-tier databases support only one default credential.') | ||
if (util.essentialNumPlan(db) || (util.legacyEssentialPlan(db) && cred !== 'default')) { | ||
throw new Error("You can't rotate credentials on Essential-tier databases.") | ||
} | ||
@@ -23,0 +23,0 @@ |
@@ -15,4 +15,4 @@ 'use strict' | ||
let cred = flags.name || 'default' | ||
if (util.essentialPlan(db) && cred !== 'default') { | ||
throw new Error('Essential-tier databases support only one default credential.') | ||
if (util.essentialNumPlan(db) || (util.legacyEssentialPlan(db) && cred !== 'default')) { | ||
throw new Error("You can't view credentials on Essential-tier databases.") | ||
} | ||
@@ -19,0 +19,0 @@ |
{ | ||
"version": "8.6.0", | ||
"version": "8.7.0", | ||
"commands": { | ||
@@ -4,0 +4,0 @@ "pg:backups": { |
{ | ||
"name": "@heroku-cli/plugin-pg-v5", | ||
"description": "Heroku CLI plugin to manage Postgres.", | ||
"version": "8.6.0", | ||
"version": "8.7.0", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -68,3 +68,3 @@ "bugs": "https://github.com/heroku/cli/issues", | ||
}, | ||
"gitHead": "2a71b1e7a6f038d0e504331e92fb44b5fd8c9045" | ||
"gitHead": "e23967590976fbf2f2ddaeeb7e28e6113be6311d" | ||
} |
302734