aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2025-09-16 09:06:55 +0200
committerJimmy Olgeni <olgeni@FreeBSD.org>2025-09-22 10:51:42 +0200
commitae09fb5df8897284dae4e15a8591200a18aebf5c (patch)
tree0253c50ca705b35115c9fa1368a99e78fe90e382 /databases
parent7fa00cc64c48b2c1144e5f42b0274101bc4375ad (diff)
databases/pgschema: Add new port
pgschema is a Terraform-style, declarative schema migration workflow for PostgreSQL databases. It enables you to manage database schema changes through code with a declarative approach that tracks schema state and applies only necessary changes. Supports PostgreSQL versions 14, 15, 16, and 17. WWW: https://github.com/pgschema/pgschema
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/pgschema/Makefile21
-rw-r--r--databases/pgschema/distinfo5
-rw-r--r--databases/pgschema/pkg-descr11
4 files changed, 38 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 54c098c83642..44c684d221db 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -577,6 +577,7 @@
SUBDIR += pgroonga
SUBDIR += pgrouting
SUBDIR += pgsanity
+ SUBDIR += pgschema
SUBDIR += pgtcl
SUBDIR += pgtop
SUBDIR += pguri
diff --git a/databases/pgschema/Makefile b/databases/pgschema/Makefile
new file mode 100644
index 000000000000..b879d73b9440
--- /dev/null
+++ b/databases/pgschema/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= pgschema
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.3
+CATEGORIES= databases
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Terraform-style declarative schema migration workflow for Postgres
+WWW= https://github.com/pgschema/pgschema
+
+LICENSE= PGSCHEMA
+LICENSE_NAME= pgschema Community License v1.0
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
+
+USES= go:1.24,modules
+
+GO_MODULE= github.com/pgschema/pgschema
+
+PLIST_FILES= bin/pgschema
+
+.include <bsd.port.mk>
diff --git a/databases/pgschema/distinfo b/databases/pgschema/distinfo
new file mode 100644
index 000000000000..95689c69754b
--- /dev/null
+++ b/databases/pgschema/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1757760575
+SHA256 (go/databases_pgschema/pgschema-v1.0.3/v1.0.3.mod) = 81d2936263ce2f1f21b9ab58271744e0bb716ff0b334e4be0d91f2a914ae363b
+SIZE (go/databases_pgschema/pgschema-v1.0.3/v1.0.3.mod) = 3364
+SHA256 (go/databases_pgschema/pgschema-v1.0.3/v1.0.3.zip) = a2d9519ca6f48e5f9716bc86e8b70051fbbb418f930ce9f6ed3b45506f120895
+SIZE (go/databases_pgschema/pgschema-v1.0.3/v1.0.3.zip) = 1079582
diff --git a/databases/pgschema/pkg-descr b/databases/pgschema/pkg-descr
new file mode 100644
index 000000000000..89f77e2fd77d
--- /dev/null
+++ b/databases/pgschema/pkg-descr
@@ -0,0 +1,11 @@
+pgschema is a Terraform-style, declarative schema migration workflow for
+PostgreSQL databases. It enables you to manage database schema changes
+through code with a declarative approach that tracks schema state and applies
+only necessary changes.
+
+Key features:
+- Declarative schema management similar to Terraform
+- Supports PostgreSQL versions 14, 15, 16, and 17
+- Tracks schema state and applies incremental changes
+- Provides table creation with LIKE syntax
+- Clean, code-driven database migration workflow