fixed cic meta migration and removed pg schema stuff during init

This commit is contained in:
2021-04-30 08:33:33 +00:00
committed by Philip Wafula
parent 9ed62c58ae
commit a3261f2f0e
10 changed files with 22 additions and 47 deletions

View File

@@ -1,15 +0,0 @@
#!/bin/bash
set -e
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,
content text not null
);
create index if not exists idx_fp on store ((lower(owner_fingerprint)));
EOSQL