Skip to content
Snippets Groups Projects
Unverified Commit ed01aa8f authored by Dashie's avatar Dashie
Browse files

Uses \copy instead of copy to uses psql copy function, avoiding access right issues

parent 17d91d50
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ begin transaction;
drop index if exists ogn_device_device_id_idx;
truncate ogn_device;
copy ogn_device from '$SCRIPTPATH/ogndevices/$DATABASE/ogndevices2.csv' DELIMITERS ',' CSV QUOTE '''';
\copy ogn_device from '$SCRIPTPATH/ogndevices/$DATABASE/ogndevices2.csv' DELIMITERS ',' CSV QUOTE '''';
create index ogn_device_device_id_idx on ogn_device(device_id);
insert into ogn_device(device_type, device_id, aircraft_model, registration, cn, tracked, identified, ddb_aircraft_type) values ('F', '3FEF6F', '', '', '', 'N', 'N', 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment