Comparing version 1.0.15 to 1.0.16
@@ -22,3 +22,3 @@ "use strict"; | ||
let current = database.base; | ||
database.base = path_1.default.join("bases", "init.db"); | ||
database.base = path_1.default.join("bases", `${database.dbname}@${database.owner}.init.db`); | ||
fs_1.default.copyFileSync(current, path_1.default.join(destination, database.base)); | ||
@@ -28,3 +28,4 @@ } | ||
let current = setup.filename; | ||
setup.filename = path_1.default.join("setups", `sets-${(index + "").padStart(5, "0")}.sql`); | ||
let basename = path_1.default.basename(current, ".sql"); | ||
setup.filename = path_1.default.join("setups", `sets-${(index + "").padStart(5, "0")}-${basename}.sql`); | ||
fs_1.default.copyFileSync(current, path_1.default.join(destination, setup.filename)); | ||
@@ -31,0 +32,0 @@ }); |
@@ -76,3 +76,3 @@ import { DatabaseSetup, Grant, HBA} from "kitres/src/core/database/instance"; | ||
let current = database.base; | ||
database.base = Path.join( "bases", "init.db" ); | ||
database.base = Path.join( "bases", `${database.dbname}@${database.owner}.init.db` ); | ||
fs.copyFileSync( current, Path.join( destination, database.base) ); | ||
@@ -83,3 +83,4 @@ } | ||
let current = setup.filename; | ||
setup.filename = Path.join( "setups", `sets-${ (index+"").padStart( 5, "0" ) }.sql` ); | ||
let basename = Path.basename( current, ".sql" ); | ||
setup.filename = Path.join( "setups", `sets-${ (index+"").padStart( 5, "0" ) }-${basename}.sql` ); | ||
fs.copyFileSync( current, Path.join( destination, setup.filename ) ); | ||
@@ -86,0 +87,0 @@ }); |
{ | ||
"name": "postgrade", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"main": "libs/postgrade/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30071
291