Skip to content

Commit

Permalink
fix destination path for extension sql upgrade scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeebbbbrrrr committed Oct 1, 2020
1 parent 6ae6a58 commit 52f9eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-pgx/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ fn copy_sql_files(extdir: &PathBuf, extname: &str, base_directory: &PathBuf) {
let filename = sql.file_name().into_string().unwrap();

if filename.starts_with(&format!("{}--", extname)) && filename.ends_with(".sql") {
let mut dest = PathBuf::new();
dest.push(&extdir);
let mut dest = base_directory.clone();
dest.push(extdir);
dest.push(filename);

copy_file(sql.path(), dest, "extension schema file");
Expand Down

0 comments on commit 52f9eba

Please sign in to comment.