fixing up the setup db script
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sudo -u postgres createuser -P -e cavecomm
|
sudo -u postgres createuser -P -e cavecommadmin
|
||||||
sudo -u postgres createdb --owner=cavecomm cavecomm 'contains all the information for the cavecomm instance on this device'
|
sudo -u postgres createdb --owner=cavecommadmin cavecomm 'contains all the information for the cavecomm instance on this device'
|
||||||
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE cavecomm TO cavecomm;"
|
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE cavecomm TO cavecommadmin;"
|
||||||
sudo -u postgres psql -c "CREATE TABLE requests(
|
sudo -u postgres psql -c "CREATE TABLE requests(
|
||||||
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||||
customerName text,
|
customerName text,
|
||||||
@ -45,7 +45,7 @@ sudo -u postgres psql -c "CREATE TABLE templates(
|
|||||||
contactInformation text,
|
contactInformation text,
|
||||||
currencyPreference text,
|
currencyPreference text,
|
||||||
priceUpFront decimal,
|
priceUpFront decimal,
|
||||||
priceOnDeliver decimal,
|
priceOnDeliver decimal
|
||||||
);
|
);
|
||||||
" cavecomm
|
" cavecomm
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user