Fix patch

This commit is contained in:
Nicolas Le Goff
2014-03-07 19:11:44 +01:00
parent 2e1a505774
commit ec07e33c9f

View File

@@ -70,8 +70,8 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiApplications 'INSERT INTO ApiApplications
( (
id, `type`, `name`, description, website id, `type`, `name`, description, website,
created, updated, client_id, client_secret, nonce created, updated, client_id, client_secret, nonce,
redirect_uri, activated, grant_password, creator_id redirect_uri, activated, grant_password, creator_id
) )
@@ -91,7 +91,7 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiAccounts 'INSERT INTO ApiAccounts
( (
id, user_id, revoked id, user_id, revoked,
api_version, created, application_id api_version, created, application_id
) )
@@ -111,14 +111,14 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiLogs 'INSERT INTO ApiLogs
( (
id, account_id, route, error_message id, account_id, route, error_message,
created, status_code, format, resource, created, status_code, format, resource,
general, aspect, `action`, error_code, general, aspect, `action`, error_code
) )
( (
SELECT SELECT
api_log_id, api_account_id, api_log_route, api_log_error_message api_log_id, api_account_id, api_log_route, api_log_error_message,
api_log_date, api_log_status_code, api_log_format, api_log_resource, api_log_date, api_log_status_code, api_log_format, api_log_resource,
api_log_general, api_log_aspect, api_log_action, api_log_error_code api_log_general, api_log_aspect, api_log_action, api_log_error_code
FROM api_log FROM api_log
@@ -132,13 +132,13 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiOauthCodes 'INSERT INTO ApiOauthCodes
( (
code, account_id, redirect_uri, expires code, account_id, redirect_uri, expires,
scope, created, updated scope, created, updated
) )
( (
SELECT SELECT
code, api_account_id, redirect_uri, expires code, api_account_id, redirect_uri, expires,
scope, NOW(), NOW() scope, NOW(), NOW()
FROM api_oauth_codes FROM api_oauth_codes
INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_codes.api_account_id) INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_codes.api_account_id)
@@ -151,13 +151,13 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiOauthRefreshTokens 'INSERT INTO ApiOauthRefreshTokens
( (
refresh_token, account_id, expires refresh_token, account_id, expires,
scope, created, updated scope, created, updated
) )
( (
SELECT SELECT
refresh_token, api_account_id, expires refresh_token, api_account_id, expires,
scope, NOW(), NOW() scope, NOW(), NOW()
FROM api_oauth_refresh_tokens FROM api_oauth_refresh_tokens
INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_refresh_tokens.api_account_id) INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_refresh_tokens.api_account_id)
@@ -171,13 +171,13 @@ class patch_390alpha17a extends patchAbstract
$em->getConnection()->executeUpdate( $em->getConnection()->executeUpdate(
'INSERT INTO ApiOauthTokens 'INSERT INTO ApiOauthTokens
( (
oauth_token, account_id, session_id, expires oauth_token, account_id, session_id, expires,
scope, created, updated scope, created, updated
) )
( (
SELECT SELECT
oauth_token, api_account_id, session_id, expires oauth_token, api_account_id, session_id, expires,
scope, NOW(), NOW() scope, NOW(), NOW()
FROM api_oauth_tokens FROM api_oauth_tokens
INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_tokens.api_account_id) INNER JOIN api_accounts ON (api_accounts.api_account_id = api_oauth_tokens.api_account_id)