[GRASS-SVN] r43500 - grass/branches/releasebranch_6_4/scripts/v.db.dropcol

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 18 10:48:58 EDT 2010


Author: neteler
Date: 2010-09-18 14:48:58 +0000 (Sat, 18 Sep 2010)
New Revision: 43500

Modified:
   grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
Log:
backport: Recreate the index on the key column of the table

Modified: grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2010-09-18 14:47:33 UTC (rev 43499)
+++ grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2010-09-18 14:48:58 UTC (rev 43500)
@@ -137,6 +137,7 @@
 DROP TABLE ${table};
 CREATE TABLE ${table}(${COLDEF});
 INSERT INTO ${table} SELECT ${COLNAMES} FROM ${table}_backup;
+CREATE UNIQUE INDEX ${table}_cat ON ${table} ( ${keycol} );
 DROP TABLE ${table}_backup;
 COMMIT;" > "$TEMPFILE"
 	db.execute input="$TEMPFILE"



More information about the grass-commit mailing list