86eyt6teg: traffic signal job - #758
Open
TibyanSaad wants to merge 1 commit into
Open
Conversation
TibyanSaad
commented
Aug 31, 2026
Collaborator
- created a traffic signal table
- added a change in the signal status red ->yellow-> green -> red(again)
- added a trigger to start the change
- added a procedure to check the current state of a specific signal
TibyanSaad
requested review from
AbdullahAlHadabi,
CodelineAtyab,
JuniorPrice,
RimaAhmed1,
aaabAlhosni and
ikhlas29
as code owners
August 31, 2026 08:00
|
Here are the code review comments for the pull request: Code Review Comments
Please address these issues to improve the code quality and compliance with project standards. |
safaalmaamari0-source
approved these changes
Aug 31, 2026
Mariya-2001
approved these changes
Aug 31, 2026
CodelineAtyab
approved these changes
Sep 1, 2026
| signal_id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, | ||
| signal_name VARCHAR2(100) NOT NULL, | ||
| state VARCHAR2(10) DEFAULT 'RED' NOT NULL | ||
| CONSTRAINT ck_signal_state CHECK (state IN ('RED','YELLOW','GREEN')), |
Owner
There was a problem hiding this comment.
any specific reason for adding a contaraint here ?
| v_next_state := 'RED'; v_required_seconds := 10; | ||
| END IF; | ||
|
|
||
| IF systimestamp >= v_last_changed_at + NUMTODSINTERVAL(v_required_seconds, 'SECOND') THEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
