migration fix
This commit is contained in:
parent
a399b183f6
commit
c592226e77
|
@ -46,6 +46,15 @@ BEGIN
|
|||
UPDATE public."DescriptionTemplate" SET version_status = 1;
|
||||
|
||||
UPDATE public."DescriptionTemplate" SET version_status = 0 where id in (
|
||||
select dt.id from public."DescriptionTemplate" as dt
|
||||
where dt.version =
|
||||
(
|
||||
select Max(f.version)
|
||||
from public."DescriptionTemplate" as f where f.group_id=dt.group_id and f.status = 1
|
||||
)
|
||||
);
|
||||
|
||||
UPDATE public."DescriptionTemplate" SET version_status = 2 where status = 0 id in (
|
||||
select dt.id from public."DescriptionTemplate" as dt
|
||||
where dt.version =
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue