rendered paste body[1] gaberta@harold ~ $ for i in $(echo "\dt" | psql -f /dev/stdin gaberta-db | grep -v "No relations found." | awk '{ print $3; }' | sort | uniq | grep -v "Name" | grep -v "relations"); do if [ "$i" != "" ]; then echo -n "drop table $i CASCADE: " ; echo "drop table $i CASCADE;" | psql -f /dev/stdin gaberta-db; fi; done; echo "drop sequence hibernate_sequence;" | psql -f /dev/stdin gaberta-db; psql -f risimport2.backup gaberta-db 2>&1 | grep -B10 -A10 -i error
drop table attribute CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk49f99f75fa151527 für Tabelle personroledata
DROP TABLE
drop table datatype CASCADE: DROP TABLE
drop table importreport CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fkef4ab6aa7a301736 für Tabelle importreportdetail
DROP TABLE
drop table importreportdetail CASCADE: DROP TABLE
drop table nologinname CASCADE: DROP TABLE
drop table ou CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fkabbd815acc63da9d für Tabelle personrole_ou
psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk38638a81cc63da9d für Tabelle sosoemapping
psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk35ba727ecc63da9d für Tabelle ou_personroletype
psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk1d7a799acc63da9d für Tabelle svaoemapping
DROP TABLE
drop table ou_personroletype CASCADE: DROP TABLE
drop table outype CASCADE: DROP TABLE
drop table person CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk456b554bef60151b für Tabelle personrole
DROP TABLE
drop table personrole CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fkabbd815a69351087 für Tabelle personrole_ou
psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk49f99f7569351087 für Tabelle personroledata
DROP TABLE
drop table personrole_ou CASCADE: DROP TABLE
drop table personroledata CASCADE: DROP TABLE
drop table personroletype CASCADE: psql:/dev/stdin:1: HINWEIS: Löschvorgang löscht ebenfalls Constraint fk45f53abae3ff5f48 für Tabelle svaprtmapping
DROP TABLE
drop table sosoemapping CASCADE: DROP TABLE
drop table svaoemapping CASCADE: DROP TABLE
drop table svaprtmapping CASCADE: DROP TABLE
DROP SEQUENCE