refacto: morbac_pg -> pg_morbac

This commit is contained in:
2026-02-20 10:36:19 +01:00
parent 5b4095677e
commit 2d5f4ca669
18 changed files with 73 additions and 73 deletions
+4 -4
View File
@@ -1,17 +1,17 @@
#!/bin/bash
# =============================================================================
# Build Script for morbac_pg Extension
# Build Script for pg_morbac Extension
# =============================================================================
# Concatenates SQL source files in src/ into a single morbac_pg.sql file
# Concatenates SQL source files in src/ into a single pg_morbac.sql file
# Order: header first, then specific order for dependencies, footer last
# =============================================================================
set -e
SRC_DIR="src"
OUTPUT="morbac_pg.sql"
OUTPUT="pg_morbac.sql"
echo "Building morbac_pg.sql from source files..."
echo "Building pg_morbac.sql from source files..."
# Check if src directory exists
if [ ! -d "$SRC_DIR" ]; then
+7 -7
View File
@@ -1,10 +1,10 @@
#!/bin/bash
# Installation script for morbac_pg extension
# Installation script for pg_morbac extension
set -e
echo "=================================="
echo "morbac_pg Extension Installer"
echo "pg_morbac Extension Installer"
echo "=================================="
echo ""
@@ -40,10 +40,10 @@ if [ ! -d "$EXTDIR" ]; then
fi
# Detect version from control file
CONTROL_FILE="morbac_pg.control"
CONTROL_FILE="pg_morbac.control"
if [ ! -f "$CONTROL_FILE" ]; then
echo "Error: $CONTROL_FILE not found"
echo "Please run this script from the morbac_pg directory"
echo "Please run this script from the pg_morbac directory"
exit 1
fi
@@ -53,7 +53,7 @@ if [ -z "$VERSION" ]; then
exit 1
fi
SQL_FILE="morbac_pg--${VERSION}.sql"
SQL_FILE="pg_morbac--${VERSION}.sql"
echo "Detected version: $VERSION"
echo ""
@@ -67,7 +67,7 @@ fi
# Copy extension files
echo "Installing extension files..."
cp -v morbac_pg.control "$EXTDIR/"
cp -v pg_morbac.control "$EXTDIR/"
cp -v "$SQL_FILE" "$EXTDIR/"
echo ""
@@ -77,7 +77,7 @@ echo "=================================="
echo ""
echo "To use the extension in your database:"
echo ""
echo " psql -d your_database -c 'CREATE EXTENSION morbac_pg;'"
echo " psql -d your_database -c 'CREATE EXTENSION pg_morbac;'"
echo ""
echo "To run tests:"
echo ""
+3 -3
View File
@@ -1,6 +1,6 @@
#!/bin/bash
# =============================================================================
# Test Runner for morbac_pg Extension
# Test Runner for pg_morbac Extension
# =============================================================================
# Runs all tests in order, loading setup data and executing each test file.
# Usage: ./tools/test.sh [database_name]
@@ -15,14 +15,14 @@ PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
TEST_DIR="$PROJECT_DIR/tests"
echo "======================================"
echo "morbac_pg Extension Test Suite"
echo "pg_morbac Extension Test Suite"
echo "======================================"
echo "Database: $DB"
echo ""
# Install extension
echo "=== Installing Extension ==="
psql -d "$DB" -f "$PROJECT_DIR/morbac_pg.sql"
psql -d "$DB" -f "$PROJECT_DIR/pg_morbac.sql"
# Load common setup
echo ""