|
|
@@ -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";
|
|
|
|
|
|
|
|
|
|