#!/bin/bash . .env cat << EOF | ./query.sh update faces set identityId=NULL where identityId is not null; delete from identities where id>0; delete from sqlite_sequence where name='identities'; EOF