Commit 2be1c77c authored by Ivar Derksen's avatar Ivar Derksen Committed by Sietse Ringers
Browse files

Updated keyshareuser.sql example script to postgreSQL

parent e724cfe7
INSERT INTO `users` VALUES (485,'testusername',NULL,NULL,NULL,'puZGbaLDmFywGhFDi4vW2G87ZhXpaUsvymZwNJfB/SU=\n',0,'0','241c78b309f8d774f32e0128c9270dc1776d9e1c6e7b763e66961a13f7b2e4df',NULL,1,1,0,'en',NULL);
\ No newline at end of file
DELETE from irma.users
WHERE username = 'test_username';
INSERT INTO irma.users (username, language, coredata, last_seen, pin_counter, pin_block_date)
VALUES (
'test_username',
'en',
decode('YWJjZK4w5SC+7D4lDrhiJGvB1iwxSeF90dGGPoGqqG7g3ivbfHibOdkKoOTZPbFlttBzn2EJgaEsL24Re8OWWWw5pd31/GCd14RXcb9Wy2oWhbr0pvJDLpIxXZt/qiQC0nJiIAYWLGZOdj5o0irDfqP1CSfw3IoKkVEl4lHRj0LCeINJIOpEfGlFtl4DHlWu8SMQFV1AIm3Gv64XzGncdkclVd41ti7cicBrcK8N2u9WvY/jCS4/Lxa2syp/O4IY', 'base64'),
1591951755,
0,
0
);
INSERT INTO irma.log_entry_records (time, event, user_id)
VALUES (
1591951800,
'PIN_CHECK_SUCCESS',
(SELECT id FROM irma.users WHERE username = 'test_username')
);
INSERT INTO irma.email_verification_tokens (token, email, expiry, user_id)
VALUES (
'test_token',
'test@example.com',
1700000000,
(SELECT id FROM irma.users WHERE username = 'test_username')
);
INSERT INTO irma.emails (user_id, email)
VALUES (
(SELECT id FROM irma.users WHERE username = 'test_username'),
'test@example.com'
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment