--- -*- mode: sql -*- BEGIN TRANSACTION; INSERT INTO wallabag_oauth2_clients ( id, user_id, random_id, secret, redirect_uris, allowed_grant_types, name ) SELECT 1, id, '${WALLABAG_WALLABAGER_ID:?}', '${WALLABAG_WALLABAGER_SECRET:?}', 'a:1:{i:0;N;}', 'a:4:{i:0;s:5:"token";i:1;s:18:"authorization_code";i:2;s:8:"password";i:3;s:13:"refresh_token";}', 'wallabager' FROM wallabag_user WHERE username = 'jdormit'; INSERT INTO wallabag_oauth2_clients ( id, user_id, random_id, secret, redirect_uris, allowed_grant_types, name ) SELECT 2, id, '${WALLABAG_ANDROID_APP_ID}', '${WALLABAG_ANDROID_APP_SECRET:?}', 'a:1:{i:0;N;}', 'a:4:{i:0;s:5:"token";i:1;s:18:"authorization_code";i:2;s:8:"password";i:3;s:13:"refresh_token";}', 'Android app' FROM wallabag_user WHERE username = 'jdormit'; INSERT INTO wallabag_oauth2_clients ( id, user_id, random_id, secret, redirect_uris, allowed_grant_types, name ) SELECT 3, id, '${WALLABAG_IPAD_ID:?}', '${WALLABAG_IPAD_SECRET:?}', 'a:1:{i:0;N;}', 'a:4:{i:0;s:5:"token";i:1;s:18:"authorization_code";i:2;s:8:"password";i:3;s:13:"refresh_token";}', 'iPad' FROM wallabag_user WHERE username = 'jdormit'; INSERT INTO wallabag_oauth2_clients ( id, user_id, random_id, secret, redirect_uris, allowed_grant_types, name ) SELECT 4, id, '${WALLABAG_WALLABAG_EL_ID:?}', '${WALLABAG_WALLABAG_EL_SECRET:?}', 'a:1:{i:0;N;}', 'a:4:{i:0;s:5:"token";i:1;s:18:"authorization_code";i:2;s:8:"password";i:3;s:13:"refresh_token";}', 'wallabag.el' FROM wallabag_user WHERE username = 'jdormit'; COMMIT;