Sha256: 0adb90860fcf29713567ad984a33c3cea6010925335b704192836e277f44aaa3
Contents?: true
Size: 667 Bytes
Versions: 9
Compression:
Stored size: 667 Bytes
Contents
#!/usr/bin/env bash set -e echo echo "Clearing Events Table" echo "= = =" echo default_name=event_source 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=events if [ -z ${TABLE_NAME+x} ]; then echo "(TABLE_NAME is not set)" table=$default_table_name else table=$TABLE_NAME fi echo "Table name is: $table" echo psql $database -c "TRUNCATE $table RESTART IDENTITY;"
Version data entries
9 entries across 9 versions & 2 rubygems