feat: adjust bin/services.sh
This commit is contained in:
parent
617a697f5a
commit
cbf3f42905
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#
|
||||
echo "Started..."
|
||||
#Started...
|
||||
#
|
||||
# special variable $# is the number of arguments
|
||||
if [ $# -lt 3 ] ; then
|
||||
|
@ -19,4 +18,3 @@ echo "DB_SCHEMA: ${DB_SCHEMA}"
|
|||
psql -h localhost -p 5432 -U $DB_USER -f ./sql/services.sql -d $DB_NAME -v schema=$DB_SCHEMA
|
||||
#
|
||||
echo "Done."
|
||||
#done.
|
||||
|
|
|
@ -8,7 +8,6 @@ DROP TABLE IF EXISTS :schema.services;
|
|||
|
||||
CREATE TABLE IF NOT EXISTS :schema.services
|
||||
(
|
||||
|
||||
feed_index int NOT NULL REFERENCES feed_info (feed_index) ON DELETE CASCADE,
|
||||
service_id text NOT NULL,
|
||||
dates text NOT NULL,
|
||||
|
|
Loading…
Reference in New Issue