datatbase schema provisioning
This commit is contained in:
4
apps/cic-meta/scripts/initdb/postgresql.sh
Normal file → Executable file
4
apps/cic-meta/scripts/initdb/postgresql.sh
Normal file → Executable file
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname cic_meta <<-EOSQL
|
||||
create table if not exists cic_meta.store (
|
||||
psql -v ON_ERROR_STOP=1 --username grassroots --dbname cic_meta <<-EOSQL
|
||||
create table if not exists store (
|
||||
id serial primary key not null,
|
||||
owner_fingerprint text not null,
|
||||
hash char(64) not null unique,
|
||||
|
||||
0
apps/cic-meta/scripts/initdb/server.postgres.sql
Normal file → Executable file
0
apps/cic-meta/scripts/initdb/server.postgres.sql
Normal file → Executable file
0
apps/cic-meta/scripts/initdb/server.sql
Normal file → Executable file
0
apps/cic-meta/scripts/initdb/server.sql
Normal file → Executable file
0
apps/cic-meta/scripts/initdb/server.sqlite.sql
Normal file → Executable file
0
apps/cic-meta/scripts/initdb/server.sqlite.sql
Normal file → Executable file
Reference in New Issue
Block a user