Changeset 96440 in spip-zone
- Timestamp:
- Apr 4, 2016, 9:06:48 AM (5 years ago)
- Location:
- _plugins_/gis_geometries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gis_geometries/gisgeom_administrations.php
r96422 r96440 15 15 16 16 $maj['create'] = array( 17 // ajout des champs geo et type à la table gis 18 array('sql_alter', "TABLE spip_gis ADD geo GEOMETRY NOT NULL AFTER lon"), 19 array('sql_alter', "TABLE spip_gis ADD type VARCHAR (25) DEFAULT '' NOT NULL AFTER zoom"), 17 // ajout des champs geo et type à la table gis (procéder en 2 temps, dans le cas où la table n'est pas vide) 18 array('sql_alter', "TABLE spip_gis ADD geo GEOMETRY AFTER lon"), 20 19 // renseigner spip_gis.geo avec spip_gis.lat et spip_gis.lon pour les objets existants 21 20 array('sql_update', 'spip_gis', array("geo"=>"GeomFromText(CONCAT('POINT(',lon,' ',lat,')'))")), 21 // NOT NULL pour pouvoir avec index ! 22 array('sql_alter', "TABLE spip_gis CHANGE COLUMN geo geo GEOMETRY NOT NULL"), 23 array('sql_alter', "TABLE spip_gis ADD type VARCHAR (25) DEFAULT '' NOT NULL AFTER zoom"), 22 24 // renseigner spip_gis.type = point pour les objets existants 23 25 array('sql_updateq', 'spip_gis', array("type"=>"Point")), -
_plugins_/gis_geometries/paquet.xml
r96422 r96440 2 2 prefix="gisgeom" 3 3 categorie="divers" 4 version="1.7. 6"4 version="1.7.7" 5 5 etat="stable" 6 6 compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset
for help on using the changeset viewer.