Update first_user_only.pgsql

This commit is contained in:
Thomas FORGIONE 2015-06-04 17:15:26 +02:00
parent d6b45ab85b
commit 81e8f8734e
2 changed files with 8 additions and 11 deletions

View File

@ -1,4 +0,0 @@
SELECT user_id, arrow_id as elt_id, time, 'arrow' as elt FROM arrowclicked
UNION
SELECT user_id, coin_id, time, 'coin' FROM coinclicked
ORDER BY time;

View File

@ -1,7 +1,8 @@
DELETE FROM arrowclicked WHERE user_id > 1; DELETE FROM arrowclicked WHERE exp_id > 1;
DELETE FROM coinclicked WHERE user_id > 1; DELETE FROM coinclicked WHERE exp_id > 1;
DELETE FROM keyboardevent WHERE user_id > 1; DELETE FROM keyboardevent WHERE exp_id > 1;
DELETE FROM resetclicked WHERE user_id > 1; DELETE FROM resetclicked WHERE exp_id > 1;
DELETE FROM previousnextclicked WHERE user_id > 1; DELETE FROM previousnextclicked WHERE exp_id > 1;
DELETE FROM hovered WHERE user_id > 1; DELETE FROM hovered WHERE exp_id > 1;
DELETE FROM experiment WHERE id > 1;
DELETE FROM users WHERE id > 1; DELETE FROM users WHERE id > 1;