update view

This commit is contained in:
shoopea 2020-06-27 09:29:46 +02:00
parent af5e1c0424
commit 99597f6a72

3
sql.go
View File

@ -635,6 +635,7 @@ func initDBViews() {
,oj.trigger_id
,(SELECT costx.intl_id FROM code_obj_sub_type costx, obj ox WHERE ox.id = oj.trigger_id AND costx.id = ox.obj_sub_type_id) COLLATE utf8mb4_unicode_ci AS trigger_sub_type
,oj.inserted
,oj.schedule
,oj.ended
,oj.zipped
,CASE oj.zipped WHEN 0 THEN CAST(oj.payload AS CHAR(20000)) ELSE null END COLLATE utf8mb4_unicode_ci AS payload
@ -644,7 +645,7 @@ func initDBViews() {
WHERE o.id = oj.obj_id
AND cost.id = o.obj_sub_type_id;`)
failOnError(err, "initDBViews : create view obj_job_v")
log.Println("initDBViews : obj_shop_main_v created ...")
log.Println("initDBViews : obj_job_v created ...")
log.Println("initDBViews : Views set up")
}