From 7868b9de91bc84de9ea40afa87484f318ff3572a Mon Sep 17 00:00:00 2001 From: fboulnois Date: Thu, 21 Mar 2024 19:38:30 -0400 Subject: [PATCH] feat: bump extension metadata to 1.5.0 --- Dockerfile | 8 ++++---- META.json | 6 +++--- Makefile | 2 +- README.md | 6 +++--- pg_uuidv7.control | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4afd69a..63270ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,9 @@ COPY . /srv RUN for v in `seq 13 16`; do pg_buildext build-$v $v; done # create tarball and checksums -RUN cp sql/pg_uuidv7--1.4.sql . && TARGETS=$(find * -name pg_uuidv7.so) \ - && tar -czvf pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.4.sql pg_uuidv7.control \ - && sha256sum pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.4.sql pg_uuidv7.control > SHA256SUMS +RUN cp sql/pg_uuidv7--1.5.sql . && TARGETS=$(find * -name pg_uuidv7.so) \ + && tar -czvf pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.5.sql pg_uuidv7.control \ + && sha256sum pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.5.sql pg_uuidv7.control > SHA256SUMS FROM postgres:16 AS env-deploy @@ -23,4 +23,4 @@ COPY --from=0 /srv/pg_uuidv7.tar.gz /srv/SHA256SUMS /srv/ # add extension to postgres COPY --from=0 /srv/${PG_MAJOR}/pg_uuidv7.so /usr/lib/postgresql/${PG_MAJOR}/lib COPY --from=0 /srv/pg_uuidv7.control /usr/share/postgresql/${PG_MAJOR}/extension -COPY --from=0 /srv/pg_uuidv7--1.4.sql /usr/share/postgresql/${PG_MAJOR}/extension +COPY --from=0 /srv/pg_uuidv7--1.5.sql /usr/share/postgresql/${PG_MAJOR}/extension diff --git a/META.json b/META.json index 8d5d9ec..cd86631 100644 --- a/META.json +++ b/META.json @@ -1,15 +1,15 @@ { "name": "pg_uuidv7", "abstract": "Create UUIDv7 values in Postgres", - "version": "1.4.1", + "version": "1.5.0", "maintainer": "fboulnois ", "license": "open_source", "provides": { "pg_uuidv7": { "abstract": "Create UUIDv7 values in Postgres", - "file": "sql/pg_uuidv7--1.4.sql", + "file": "sql/pg_uuidv7--1.5.sql", "docfile": "README.md", - "version": "1.4.1" + "version": "1.5.0" } }, "resources": { diff --git a/Makefile b/Makefile index a3941b4..1a80fcb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ MODULES = pg_uuidv7 EXTENSION = pg_uuidv7 -DATA = sql/pg_uuidv7--1.4.sql +DATA = sql/pg_uuidv7--1.5.sql TESTS = $(wildcard test/sql/*.sql) REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS)) diff --git a/README.md b/README.md index 2582bff..66db59e 100644 --- a/README.md +++ b/README.md @@ -62,19 +62,19 @@ can be created in parallel in a distributed system. and extract it to a temporary directory 2. Copy `pg_uuidv7.so` for your Postgres version into the Postgres module directory -3. Copy `pg_uuidv7--1.4.sql` and `pg_uuidv7.control` into the Postgres extension +3. Copy `pg_uuidv7--1.5.sql` and `pg_uuidv7.control` into the Postgres extension directory 4. Enable the extension in the database using `CREATE EXTENSION pg_uuidv7;` ```sh # example shell script to install pg_uuidv7 cd "$(mktemp -d)" -curl -LO "https://github.com/fboulnois/pg_uuidv7/releases/download/v1.4.1/{pg_uuidv7.tar.gz,SHA256SUMS}" +curl -LO "https://github.com/fboulnois/pg_uuidv7/releases/download/v1.5.0/{pg_uuidv7.tar.gz,SHA256SUMS}" tar xf pg_uuidv7.tar.gz sha256sum -c SHA256SUMS PG_MAJOR=$(pg_config --version | sed 's/^.* \([0-9]\{1,\}\).*$/\1/') cp "$PG_MAJOR/pg_uuidv7.so" "$(pg_config --pkglibdir)" -cp pg_uuidv7--1.4.sql pg_uuidv7.control "$(pg_config --sharedir)/extension" +cp pg_uuidv7--1.5.sql pg_uuidv7.control "$(pg_config --sharedir)/extension" psql -c "CREATE EXTENSION pg_uuidv7;" ``` diff --git a/pg_uuidv7.control b/pg_uuidv7.control index 08e1e67..fc36cbe 100644 --- a/pg_uuidv7.control +++ b/pg_uuidv7.control @@ -1,4 +1,4 @@ comment = 'pg_uuidv7: create UUIDv7 values in postgres' -default_version = '1.4' +default_version = '1.5' module_pathname = '$libdir/pg_uuidv7' relocatable = true