Sha256: 846afee4e5a7c08aed752972042de879538eada966e66002b0bbc6619c453cbd

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

#!/usr/bin/env bash

set -e

echo
echo "Clearing Events Table"
echo "= = ="
echo

default_name=message_store

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"

echo

psql $database -c "TRUNCATE messages RESTART IDENTITY;"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
evt-message_store-postgres-database-1.1.0.2 database/clear-messages.sh
evt-message_store-postgres-database-1.1.0.1 database/clear-messages.sh
evt-message_store-postgres-database-1.1.0.0 database/clear-messages.sh
evt-message_store-postgres-database-1.0.0.0 database/clear-messages.sh
evt-message_store-postgres-database-0.11.0.0 database/clear-messages.sh
evt-message_store-postgres-database-0.10.1.3 database/clear-messages.sh