Sha256: 859807c4452b6245bbf3ea98ec4f49112df0e07969fa1830c3ae31cb4a49ccaf

Contents?: true

Size: 548 Bytes

Versions: 15

Compression:

Stored size: 548 Bytes

Contents

#!/usr/bin/env bash

set -e

echo
echo "Printing Message Store Version"
echo "= = ="
echo

default_name=message_store

if [ -z ${DATABASE_USER+x} ]; then
  echo "(DATABASE_USER is not set)"
  user=$default_name
else
  user=$DATABASE_USER
fi
echo "Database user is: $user"

if [ -z ${DATABASE_NAME+x} ]; then
  echo "(DATABASE_NAME is not set)"
  database=$default_name
else
  database=$DATABASE_NAME
fi
echo "Database name is: $database"

default_table_name=messages

echo

psql $database -U $user -P pager=off -c "SELECT message_store_version();"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
message-db-2.1.6 database/print-message-store-version.sh
message-db-2.1.5 database/print-message-store-version.sh
message-db-2.1.4 database/print-message-store-version.sh
message-db-2.1.3 database/print-message-store-version.sh
message-db-2.1.2 database/print-message-store-version.sh
message-db-2.1.1 database/print-message-store-version.sh
message-db-2.1.0 database/print-message-store-version.sh
message-db-2.0.2 database/print-message-store-version.sh
message-db-2.0.1 database/print-message-store-version.sh
message-db-2.0.0 database/print-message-store-version.sh
message-db-1.1.3 database/print-message-store-version.sh
message-db-1.1.2 database/print-message-store-version.sh
message-db-1.1.1 database/print-message-store-version.sh
message-db-1.1.0 database/print-message-store-version.sh
message-db-1.0.0 database/print-message-store-version.sh