JujaLabs / itevents

Resource to subscribe on it events
Apache License 2.0
7 stars 5 forks source link

Issue #104 refactor of Unassign function #107

Closed IgorMaksymov closed 8 years ago

vaa25 commented 8 years ago
  1. @Delete("UPDATE user_event " + неправильная аннотация
  2. ALTER TABLE user_event DROP CONSTRAINT user_event_pkey, ADD COLUMN unassignDate TIMESTAMP DEFAULT NULL, ADD COLUMN unassignReason VARCHAR(250)DEFAULT NULL, ADD id SERIAL PRIMARY KEY NOT NULL; (отступ, camel_case)[https://github.com/JuniorsJava/itevents/wiki/SQL-expressons-style]
  3. "INSERT INTO user_event " + "SELECT #{user.id}, #{event.id} " + "WHERE NOT EXISTS( " + "SELECT 1 FROM user_event " + "where user_id = #{user.id} AND event_id = #{event.id} AND unassigndate IS NULL)" (CAPITAL KEY WORD)[https://github.com/JuniorsJava/itevents/wiki/SQL-expressons-style]
  4. "testAssignUserEvent_initial.xml" в каком тесте он initial?