{"action":"created","issue":{"url":"https://api.github.com/repos/mschatten/akdb/issues/106","repository_url":"https://api.github.com/repos/mschatten/akdb","labels_url":"https://api.github.com/repos/mschatten/akdb/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/mschatten/akdb/issues/106/comments","events_url":"https://api.github.com/repos/mschatten/akdb/issues/106/events","html_url":"https://github.com/mschatten/akdb/issues/106","id":308063578,"number":106,"title":"Popraviti trigger.c","user":{"login":"mschatten","id":2938788,"avatar_url":"https://avatars2.githubusercontent.com/u/2938788?v=4","gravatar_id":"","url":"https://api.github.com/users/mschatten","html_url":"https://github.com/mschatten","followers_url":"https://api.github.com/users/mschatten/followers","following_url":"https://api.github.com/users/mschatten/following{/other_user}","gists_url":"https://api.github.com/users/mschatten/gists{/gist_id}","starred_url":"https://api.github.com/users/mschatten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschatten/subscriptions","organizations_url":"https://api.github.com/users/mschatten/orgs","repos_url":"https://api.github.com/users/mschatten/repos","events_url":"https://api.github.com/users/mschatten/events{/privacy}","received_events_url":"https://api.github.com/users/mschatten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-23T15:00:38Z","updated_at":"2018-04-27T13:43:33Z","closed_at":null,"author_association":"OWNER","body":"\r\nint AK_trigger_remove_by_name(char *name, char *table)\r\n\r\nFunkcija dohvaća ID triggera s definiranim imenom i tablicom te ga obriše. Nakon toga potraži unos u AK_trigger_conditions tablici i ručno ga briše.\r\n\r\nProstor za poboljšanje:\r\n\r\n    Koristiti AK_trigger_remove_by_obj_id za brisanje nakon dohvaćanja ID-a kako bi se izbjegla redudancija\r\n    Dodati foreign key na AK_trigger_conditions tablicu kako bi se njen unos automatski obrisao\r\n\r\nint AK_trigger_remove_by_obj_id(int obj_id)\r\n\r\nIsta funkcionalnost kao i AK_trigger_remove_by_name, samo bez dohvaćanja IDa triggera.\r\n\r\nProstor za poboljšanje:\r\n\r\n    Dodati foreign key na AK_trigger_conditions tablicu kako bi se njen unos automatski obrisao\r\n\r\nint AK_trigger_edit(char name, char event, struct list_node condition, char table, char* function)\r\n\r\nFunkcija prvo provjerava ukoliko su svi argumenti uneseni te ukoliko referencirani objekti postoje. Tada briše postojeći trigger i kreira novi s zadanim argumentima.\r\n\r\nProstor za poboljšanje:\r\n\r\n    Razdvojiti funkciju Ak_Insert_New_Element_For_Update u logičke djelove da kod bude lakše čitljiv\r\n\r\nstruct list_node *AK_trigger_get_conditions(int trigger)\r\n\r\nVraća postfix listu uvjeta za trigger s navedenim ID.\r\nint AK_trigger_rename(char *old_name, char *new_name, char *table)\r\n\r\nOsvježuje red u AK_trigger tablici s novim imenom za postojeći trigger."},"comment":{"url":"https://api.github.com/repos/mschatten/akdb/issues/comments/384973955","html_url":"https://github.com/mschatten/akdb/issues/106#issuecomment-384973955","issue_url":"https://api.github.com/repos/mschatten/akdb/issues/106","id":384973955,"user":{"login":"mschatten","id":2938788,"avatar_url":"https://avatars2.githubusercontent.com/u/2938788?v=4","gravatar_id":"","url":"https://api.github.com/users/mschatten","html_url":"https://github.com/mschatten","followers_url":"https://api.github.com/users/mschatten/followers","following_url":"https://api.github.com/users/mschatten/following{/other_user}","gists_url":"https://api.github.com/users/mschatten/gists{/gist_id}","starred_url":"https://api.github.com/users/mschatten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschatten/subscriptions","organizations_url":"https://api.github.com/users/mschatten/orgs","repos_url":"https://api.github.com/users/mschatten/repos","events_url":"https://api.github.com/users/mschatten/events{/privacy}","received_events_url":"https://api.github.com/users/mschatten/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T13:43:32Z","updated_at":"2018-04-27T13:43:32Z","author_association":"OWNER","body":"Issue zatvoren, nastavak u issue #138"}}
{"actor":{"display_login":"mschatten"}}