Browse Source

Merge branch 'master' of bn.git:plabudda/se

Piotr Labudda 8 years ago
parent
commit
3595790619
1 changed files with 5 additions and 2 deletions
  1. 5 2
      SE/superedit-DB_PROCEDURES_CREATE.php

+ 5 - 2
SE/superedit-DB_PROCEDURES_CREATE.php

@@ -1380,10 +1380,13 @@ END
 //! EOF ### powiazanie georeferencji z projektem oblotu:
 
 
+$sql['WORKER_GPS_LOG_last_tmp_drop'] = "DROP view if exists WORKER_GPS_LOG_last_tmp";
+$sql['WORKER_GPS_LOG_last_tmp'] = "create view WORKER_GPS_LOG_last_tmp as select max(ID) as ID, A_RECORD_CREATE_AUTHOR from WORKER_GPS_LOG group by A_RECORD_CREATE_AUTHOR";
+
+$sql['WORKER_GPS_LOG_current_view_drop'] = "DROP view if exists WORKER_GPS_LOG_current_view";
+$sql['WORKER_GPS_LOG_current_view'] = "create view WORKER_GPS_LOG_current_view as select dat.* from WORKER_GPS_LOG_last_tmp as last join WORKER_GPS_LOG as dat on last.ID = dat.ID";
 
-//$sql['WORKER_GPS_LOG_current_view_drop']="DROP view if exists WORKER_GPS_LOG_current_view";
 
-//$sql['WORKER_GPS_LOG_current_view']="create view WORKER_GPS_LOG_current_view as  select * from  `WORKER_GPS_LOG` group by `A_RECORD_CREATE_AUTHOR` order by `ID` desc";