aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update/pre002729-1-intezmeny.sql
blob: 3984cdf4587b3eb69b143838f667313288eda9a0 (plain)
1
2
3
4
5
6
7
8
alter table kepzesDiak add column tolDt date default null;
alter table kepzesDiak add column igDt date default null;
update kepzesDiak left join diak using (diakId) set tolDt=jogviszonyKezdete, igDt=jogviszonyVege;
alter table kepzesDiak drop primary key;
alter table kepzesDiak add primary key (`kepzesId`,`diakId`,`tolDt`);