Skip to content

Commit 7c0e496

Browse files
committed
feat: pg_cron using the new multi-version pattern not yet complete
1 parent b99cccb commit 7c0e496

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nix/ext/pg_cron.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ let
4242
-e "s|^module_pathname = .*|module_pathname = '\$libdir/${pname}-${version}'|" \
4343
${pname}.control > $out/share/postgresql/extension/${pname}--${version}.control
4444
45+
# Create version-specific SQL file
46+
cp ${pname}.sql $out/share/postgresql/extension/${pname}--${version}.sql
47+
4548
# For the latest version, create default control file and symlink and copy SQL upgrade scripts
4649
if [[ "${version}" == "${latestVersion}" ]]; then
4750
{

0 commit comments

Comments
 (0)