2021-02-09 16:26:02 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2021-02-09 17:24:47 +01:00
|
|
|
psql -v ON_ERROR_STOP=1 --username grassroots --dbname cic_meta <<-EOSQL
|
|
|
|
create table if not exists store (
|
2021-02-09 16:26:02 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|