]> git.nbdom.net Git - nb.git/commitdiff
lib/postgres/mime.sql
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 7 Feb 2018 20:22:14 +0000 (20:22 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 7 Feb 2018 20:22:14 +0000 (20:22 +0000)
lib/postgres/mime.sql

index 48463ed5a4e624865980a58ba7fc44fd4e164a4f..06e85d43d9836d5158f7858bf60fff6f050d9f3f 100644 (file)
@@ -724,7 +724,10 @@ https://gist.githubusercontent.com/electerious/3d5a31a73cfd6423f835c074ab25fc06/
 INSERT INTO mime SELECT * FROM tmp_mime ON CONFLICT DO NOTHING;
 
 DELETE FROM tmp_mime;
-COPY tmp_mime FROM PROGRAM 'curl -s http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types | egrep "^\w"| sed -E "s/^([^\t ]+)[\t ]+([^\t ]+)/\2\t\1/"' WITH (format 'text', NULL '');
+COPY tmp_mime FROM PROGRAM 'curl -s \
+http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types \
+| egrep "^\w" \
+| sed -E "s/^([^\t ]+)[\t ]+([^\t ]+)/\2\t\1\t2/"' WITH (format 'text', NULL '');
 INSERT INTO mime SELECT * FROM tmp_mime ON CONFLICT DO NOTHING;
 
 -- DELETE FROM mime WHERE LENGTH(ext)>6;