C:\Program Files\PostgreSQL\9.2\bin> C:\Program Files\PostgreSQL\9.2\bin>psql -d dhis -U dhis -f C:\Users\TKazungu\Downloads\rename-patient-to-trackeden tity.sql Password for user dhis: psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:4: ERROR: syntax error at or near "" LINE 1:  ^ DROP TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:6: ERROR: table "patientaggregatereportmember s" does not exist DROP TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:8: ERROR: cannot drop table patientaggregater eport because other objects depend on it DETAIL: constraint fk_patientaggregatereportid_dimensions on table patientaggregatereport_dimension depends on tab le patientaggregatereport HINT: Use DROP ... CASCADE to drop the dependent objects too. psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:10: ERROR: column "patienttabularreportid" of relation "programstage_dataelements" does not exist DROP TABLE DROP TABLE DROP TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:14: ERROR: table "patienttabularreportmembers " does not exist DROP TABLE DROP TABLE DROP TABLE ALTER TABLE DROP TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:41: ERROR: constraint "patientattribute_code_ key" for table "trackedentityattribute" does not exist psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:42: ERROR: constraint "patientattribute_name_ key" for table "trackedentityattribute" does not exist ALTER TABLE ALTER TABLE ALTER TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:49: ERROR: constraint "patientattributegroup_ code_key" for table "trackedentityattributegroup" does not exist psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:50: ERROR: constraint "patientattributegroup_ name_key" for table "trackedentityattributegroup" does not exist ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:68: ERROR: table "patientregistrationform_att ributes" does not exist psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:69: ERROR: table "patientregistrationform_fix edattributes" does not exist psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:70: ERROR: table "patientregistrationform_ide ntifiertypes" does not exist psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:71: ERROR: table "patientregistrationform_att ributes" does not exist ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE psql:C:/Users/TKazungu/Downloads/rename-patient-to-trackedentity.sql:133: ERROR: table "patientmobilesetting" does not exist C:\Program Files\PostgreSQL\9.2\bin>