[GRASS-SVN] r43068 - grass/branches/develbranch_6/scripts/v.db.dropcol

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 12 12:44:08 EDT 2010


Author: mlennert
Date: 2010-08-12 16:44:08 +0000 (Thu, 12 Aug 2010)
New Revision: 43068

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


Modified: grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol	2010-08-12 14:39:25 UTC (rev 43067)
+++ grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol	2010-08-12 16:44:08 UTC (rev 43068)
@@ -139,6 +139,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