Fix helper script

This commit is contained in:
Filip Gralinski 2019-08-27 23:01:12 +02:00
parent d9b92b772a
commit 628f8aedc2

View File

@ -1,6 +1,6 @@
/*insert into version("commit", major, minor, patch, description) select R.current_commit, 1, 0, 0, 'taken over' from challenge C, repo R where C.private_repo = R.id ;
insert into version("commit", major, minor, patch, description) select R.current_commit, 1, 0, 0, 'taken over' from challenge C, repo R where C.private_repo = R.id ;
update challenge set version = (select R.current_commit from repo R where private_repo = R.id);*/
update challenge set version = (select R.current_commit from repo R where private_repo = R.id);
update submission set version = (select R.current_commit from repo R, challenge C where C.private_repo = R.id and challenge = C.id);