Created
December 9, 2015 05:54
-
-
Save ryandotclair/e83511b5f8ef92546ce8 to your computer and use it in GitHub Desktop.
setup-db.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
psql --username "$POSTGRES_USER" -c "create database reporter;" | |
psql --username "$POSTGRES_USER" -d reporter -c "create schema reporterschema;" | |
psql --username "$POSTGRES_USER" -d reporter -c \ | |
"create table reporterschema.main(Key BIGSERIAL PRIMARY KEY,Date DATE NOT NULL,SN TEXT NOT NULL,SG TEXT NOT NULL,SRDFA_MBSent INT NOT NULL);" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment