Commit 2caa5d0eff43c96509e4a09fddbc302023ed5253
1 parent
dc1c02f7
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
admin/php/metaestat_uploadcsv_submit.php
@@ -178,7 +178,8 @@ if (ob_get_level() == 0) ob_start(); | @@ -178,7 +178,8 @@ if (ob_get_level() == 0) ob_start(); | ||
178 | flush(); | 178 | flush(); |
179 | sleep(1); | 179 | sleep(1); |
180 | if($_POST["incluiserialcsv"] == "on"){ | 180 | if($_POST["incluiserialcsv"] == "on"){ |
181 | - $linhasql[] = "alter table ".$_POST["i3GEOuploadcsvesquema"].".".$_POST["tabelaDestinocsv"]." add gid serial CONSTRAINT gid_pkey PRIMARY KEY"; | 181 | + $linhasql[] = "alter table ".$_POST["i3GEOuploadcsvesquema"].".".$_POST["tabelaDestinocsv"]." add gid serial CONSTRAINT ".$_POST["tabelaDestinocsv"]."_gid_pkey PRIMARY KEY"; |
182 | + echo "<br>alter table ".$_POST["i3GEOuploadcsvesquema"].".".$_POST["tabelaDestinocsv"]." add gid serial CONSTRAINT ".$_POST["tabelaDestinocsv"]."_gid_pkey PRIMARY KEY"; | ||
182 | } | 183 | } |
183 | foreach($sqltabela as $linha){ | 184 | foreach($sqltabela as $linha){ |
184 | try { | 185 | try { |
admin/php/metaestat_uploadshp_submit.php
@@ -204,7 +204,8 @@ if (isset($_FILES['i3GEOuploadshp']['name'])){ | @@ -204,7 +204,8 @@ if (isset($_FILES['i3GEOuploadshp']['name'])){ | ||
204 | flush(); | 204 | flush(); |
205 | sleep(1); | 205 | sleep(1); |
206 | if($_POST["incluiserialshp"] == "on"){ | 206 | if($_POST["incluiserialshp"] == "on"){ |
207 | - $linhas[] = "alter table ".$_POST["i3GEOuploadesquema"].".".$_POST["tabelaDestino"]." add gid serial CONSTRAINT gid_pkey PRIMARY KEY"; | 207 | + $linhas[] = "alter table ".$_POST["i3GEOuploadesquema"].".".$_POST["tabelaDestino"]." add gid serial CONSTRAINT ".$_POST["tabelaDestino"]."_gid_pkey PRIMARY KEY"; |
208 | + echo "<br>alter table ".$_POST["i3GEOuploadesquema"].".".$_POST["tabelaDestino"]." add gid serial CONSTRAINT ".$_POST["tabelaDestino"]."_gid_pkey PRIMARY KEY"; | ||
208 | } | 209 | } |
209 | 210 | ||
210 | foreach($sqltabela as $linha){ | 211 | foreach($sqltabela as $linha){ |