INSERT, not IMPORT!
authorChris Sharp <csharp@georgialibraries.org>
Fri, 31 Jul 2015 12:54:35 +0000 (08:54 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 31 Jul 2015 12:54:35 +0000 (08:54 -0400)
copy_reports_templates.sh

index 97e50ce..45d2ca5 100755 (executable)
@@ -13,7 +13,7 @@ read -p "Please enter the id for the destination template owner on the destinati
 read -p "Please enter the id for the destination template folder on the destination server for the copied templates: " FOLDER
 
 read -d '' SQL <<EOF
-select 'import into reporter.template (owner, name, description, data, folder) values ($OWNER, ''' || name || ''', ''' || description || ''', ''' || data || ''', $FOLDER);'
+select 'insert into reporter.template (owner, name, description, data, folder) values ($OWNER, ''' || name || ''', ''' || description || ''', ''' || data || ''', $FOLDER);'
 from reporter.template
 where id in ($TEMPLATES);
 EOF