2010-01-15 Pablo de la Concepción <pablo.concepcion@artica.es>

* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
    schema to give a default value to start_timestamp on tgis_data, without
    it as is a timestamp MySQL sets the default value as CURRENT_TIMESTAMP
    and also sets the CURRENT_TIMESTAMP ON UPDATE, setting the DEFAULT
    CURRENT_TIMESTAMP prevents MySQL to set the ON UPDATE CURRENT_TIMESTAMP.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2273 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
pabloconcepcion 2010-01-15 14:03:31 +00:00
parent 0743941092
commit c185bdd415
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2010-01-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to give a default value to start_timestamp on tgis_data, without
it as is a timestamp MySQL sets the default value as CURRENT_TIMESTAMP
and also sets the CURRENT_TIMESTAMP ON UPDATE, setting the DEFAULT
CURRENT_TIMESTAMP prevents MySQL to set the ON UPDATE CURRENT_TIMESTAMP.
2010-01-14 Pablo de la Concepción <pablo.concepcion@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB

View File

@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `tgis_data` (
`longitude` DOUBLE NOT NULL ,
`latitude` DOUBLE NOT NULL ,
`altitude` DOUBLE NULL ,
`start_timestamp` TIMESTAMP NOT NULL COMMENT 'timestamp on wich the agente started to be in this position' ,
`start_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp on wich the agente started to be in this position' ,
`end_timestamp` TIMESTAMP NULL COMMENT 'timestamp on wich the agent was placed for last time on this position' ,
`description` TEXT NULL COMMENT 'description of the region correoponding to this placemnt' ,
`manual_placement` TINYINT(1) NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' ,

View File

@ -867,7 +867,7 @@ CREATE TABLE IF NOT EXISTS `tgis_data` (
`longitude` DOUBLE NOT NULL ,
`latitude` DOUBLE NOT NULL ,
`altitude` DOUBLE NULL ,
`start_timestamp` TIMESTAMP NOT NULL COMMENT 'timestamp on wich the agente started to be in this position' ,
`start_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp on wich the agente started to be in this position' ,
`end_timestamp` TIMESTAMP NULL COMMENT 'timestamp on wich the agent was placed for last time on this position' ,
`description` TEXT NULL COMMENT 'description of the region correoponding to this placemnt' ,
`manual_placement` TINYINT(1) NULL DEFAULT 0 COMMENT '0 to show that the position cames from the agent, 1 to show that the position was established manualy' ,