updatedb
This commit is contained in:
20
public/home/admin/event/update/add/qCup.q
Executable file
20
public/home/admin/event/update/add/qCup.q
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
insert into curso
|
||||
(nombre,temario,servicios,estado)
|
||||
values(
|
||||
q#cname ,
|
||||
q#csubjects ,
|
||||
q#cservices ,
|
||||
case q#cen when "on" then 1 else 0 end);
|
||||
|
||||
|
||||
|
||||
|
||||
24
public/home/admin/event/update/add/qEup.q
Executable file
24
public/home/admin/event/update/add/qEup.q
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
insert into evento
|
||||
(lugar_id, fecha_inicio, fecha_fin,precio,curso_id,imagen_chica,estado,promocion,promo_estado)
|
||||
values(
|
||||
q#eplace ,
|
||||
" #yini - #mini - #dini ",
|
||||
" #yend - #mend - #dend ",
|
||||
q#cost ,
|
||||
q#ecourse ,
|
||||
q#eimg ,
|
||||
case q#een when "on" then 1 else 0 end,
|
||||
q#promo ,
|
||||
case q#pen when "on" then 1 else 0 end);
|
||||
|
||||
|
||||
|
||||
23
public/home/admin/event/update/add/qPup.q
Executable file
23
public/home/admin/event/update/add/qPup.q
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
insert into lugar
|
||||
(nombre,direccion,observacion,municipio,federativa,pais,lat,lng,estado)
|
||||
values(
|
||||
q#pname ,
|
||||
q#paddr ,
|
||||
q#pobs ,
|
||||
q#pto ,
|
||||
q#pst ,
|
||||
q#pco ,
|
||||
q#lat ,
|
||||
q#lng ,
|
||||
case q#pen when "on" then 1 else 0 end);
|
||||
|
||||
|
||||
12
public/home/admin/event/update/change/qCdel.q
Executable file
12
public/home/admin/event/update/change/qCdel.q
Executable file
@@ -0,0 +1,12 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
delete from curso
|
||||
where id = q#cprev ;
|
||||
|
||||
|
||||
18
public/home/admin/event/update/change/qCup.q
Executable file
18
public/home/admin/event/update/change/qCup.q
Executable file
@@ -0,0 +1,18 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
|
||||
update curso set
|
||||
nombre = q#cname ,
|
||||
temario= q#csubjects ,
|
||||
servicios= q#cservices ,
|
||||
estado = case q#cen when "on" then 1 else 0 end
|
||||
where id = q#cprev ;
|
||||
|
||||
|
||||
12
public/home/admin/event/update/change/qEdel.q
Executable file
12
public/home/admin/event/update/change/qEdel.q
Executable file
@@ -0,0 +1,12 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
delete from evento
|
||||
where id = q#eprev ;
|
||||
|
||||
22
public/home/admin/event/update/change/qEup.q
Executable file
22
public/home/admin/event/update/change/qEup.q
Executable file
@@ -0,0 +1,22 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
|
||||
|
||||
update evento set
|
||||
lugar_id = q#eplace ,
|
||||
fecha_inicio=' #yini - #mini - #dini ',
|
||||
fecha_fin= ' #yend - #mend - #dend ',
|
||||
precio= q#cost ,
|
||||
promocion= q#promo ,
|
||||
promo_estado = case q#pen when "on" then 1 else 0 end,
|
||||
curso_id= q#ecourse ,
|
||||
imagen_chica= q#eimg ,
|
||||
estado = case q#een when "on" then 1 else 0 end
|
||||
where id = q#eprev ;
|
||||
|
||||
13
public/home/admin/event/update/change/qPdel.q
Executable file
13
public/home/admin/event/update/change/qPdel.q
Executable file
@@ -0,0 +1,13 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
delete from lugar
|
||||
where id = q#pprev ;
|
||||
|
||||
|
||||
|
||||
20
public/home/admin/event/update/change/qPup.q
Executable file
20
public/home/admin/event/update/change/qPup.q
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_w */
|
||||
/* c#password #dbdata_wp */
|
||||
/* c#write write*/
|
||||
|
||||
|
||||
update lugar set
|
||||
nombre= q#pname ,
|
||||
direccion= q#paddr ,
|
||||
observacion= q#pobs ,
|
||||
municipio= q#pto ,
|
||||
federativa= q#pst ,
|
||||
pais= q#pco ,
|
||||
lat= q#plat ,
|
||||
lng= q#plng ,
|
||||
estado = case q#pen when "on" then 1 else 0 end
|
||||
where id = q#pprev ;
|
||||
|
||||
Reference in New Issue
Block a user