mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(core): drop three_dsserver_trans_id from authentication table (#4587)
This commit is contained in:
		| @ -38,7 +38,6 @@ pub struct Authentication { | |||||||
|     pub challenge_request: Option<String>, |     pub challenge_request: Option<String>, | ||||||
|     pub acs_reference_number: Option<String>, |     pub acs_reference_number: Option<String>, | ||||||
|     pub acs_trans_id: Option<String>, |     pub acs_trans_id: Option<String>, | ||||||
|     pub three_ds_server_trans_id: Option<String>, |  | ||||||
|     pub acs_signed_content: Option<String>, |     pub acs_signed_content: Option<String>, | ||||||
|     pub profile_id: String, |     pub profile_id: String, | ||||||
|     pub payment_id: Option<String>, |     pub payment_id: Option<String>, | ||||||
| @ -83,7 +82,6 @@ pub struct AuthenticationNew { | |||||||
|     pub challenge_request: Option<String>, |     pub challenge_request: Option<String>, | ||||||
|     pub acs_reference_number: Option<String>, |     pub acs_reference_number: Option<String>, | ||||||
|     pub acs_trans_id: Option<String>, |     pub acs_trans_id: Option<String>, | ||||||
|     pub three_dsserver_trans_id: Option<String>, |  | ||||||
|     pub acs_signed_content: Option<String>, |     pub acs_signed_content: Option<String>, | ||||||
|     pub profile_id: String, |     pub profile_id: String, | ||||||
|     pub payment_id: Option<String>, |     pub payment_id: Option<String>, | ||||||
| @ -160,7 +158,6 @@ pub struct AuthenticationUpdateInternal { | |||||||
|     pub challenge_request: Option<String>, |     pub challenge_request: Option<String>, | ||||||
|     pub acs_reference_number: Option<String>, |     pub acs_reference_number: Option<String>, | ||||||
|     pub acs_trans_id: Option<String>, |     pub acs_trans_id: Option<String>, | ||||||
|     pub three_dsserver_trans_id: Option<String>, |  | ||||||
|     pub acs_signed_content: Option<String>, |     pub acs_signed_content: Option<String>, | ||||||
| } | } | ||||||
|  |  | ||||||
| @ -191,7 +188,6 @@ impl Default for AuthenticationUpdateInternal { | |||||||
|             challenge_request: Default::default(), |             challenge_request: Default::default(), | ||||||
|             acs_reference_number: Default::default(), |             acs_reference_number: Default::default(), | ||||||
|             acs_trans_id: Default::default(), |             acs_trans_id: Default::default(), | ||||||
|             three_dsserver_trans_id: Default::default(), |  | ||||||
|             acs_signed_content: Default::default(), |             acs_signed_content: Default::default(), | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| @ -224,7 +220,6 @@ impl AuthenticationUpdateInternal { | |||||||
|             challenge_request, |             challenge_request, | ||||||
|             acs_reference_number, |             acs_reference_number, | ||||||
|             acs_trans_id, |             acs_trans_id, | ||||||
|             three_dsserver_trans_id, |  | ||||||
|             acs_signed_content, |             acs_signed_content, | ||||||
|         } = self; |         } = self; | ||||||
|         Authentication { |         Authentication { | ||||||
| @ -256,7 +251,6 @@ impl AuthenticationUpdateInternal { | |||||||
|             challenge_request: challenge_request.or(source.challenge_request), |             challenge_request: challenge_request.or(source.challenge_request), | ||||||
|             acs_reference_number: acs_reference_number.or(source.acs_reference_number), |             acs_reference_number: acs_reference_number.or(source.acs_reference_number), | ||||||
|             acs_trans_id: acs_trans_id.or(source.acs_trans_id), |             acs_trans_id: acs_trans_id.or(source.acs_trans_id), | ||||||
|             three_ds_server_trans_id: three_dsserver_trans_id.or(source.three_ds_server_trans_id), |  | ||||||
|             acs_signed_content: acs_signed_content.or(source.acs_signed_content), |             acs_signed_content: acs_signed_content.or(source.acs_signed_content), | ||||||
|             ..source |             ..source | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -108,7 +108,6 @@ diesel::table! { | |||||||
|         challenge_request -> Nullable<Varchar>, |         challenge_request -> Nullable<Varchar>, | ||||||
|         acs_reference_number -> Nullable<Varchar>, |         acs_reference_number -> Nullable<Varchar>, | ||||||
|         acs_trans_id -> Nullable<Varchar>, |         acs_trans_id -> Nullable<Varchar>, | ||||||
|         three_dsserver_trans_id -> Nullable<Varchar>, |  | ||||||
|         acs_signed_content -> Nullable<Varchar>, |         acs_signed_content -> Nullable<Varchar>, | ||||||
|         #[max_length = 64] |         #[max_length = 64] | ||||||
|         profile_id -> Varchar, |         profile_id -> Varchar, | ||||||
|  | |||||||
| @ -177,7 +177,6 @@ pub async fn create_new_authentication( | |||||||
|         challenge_request: None, |         challenge_request: None, | ||||||
|         acs_reference_number: None, |         acs_reference_number: None, | ||||||
|         acs_trans_id: None, |         acs_trans_id: None, | ||||||
|         three_dsserver_trans_id: None, |  | ||||||
|         acs_signed_content: None, |         acs_signed_content: None, | ||||||
|         profile_id, |         profile_id, | ||||||
|         payment_id, |         payment_id, | ||||||
|  | |||||||
| @ -143,7 +143,6 @@ impl AuthenticationInterface for MockDb { | |||||||
|             challenge_request: authentication.challenge_request, |             challenge_request: authentication.challenge_request, | ||||||
|             acs_reference_number: authentication.acs_reference_number, |             acs_reference_number: authentication.acs_reference_number, | ||||||
|             acs_trans_id: authentication.acs_trans_id, |             acs_trans_id: authentication.acs_trans_id, | ||||||
|             three_ds_server_trans_id: authentication.three_dsserver_trans_id, |  | ||||||
|             acs_signed_content: authentication.acs_signed_content, |             acs_signed_content: authentication.acs_signed_content, | ||||||
|             profile_id: authentication.profile_id, |             profile_id: authentication.profile_id, | ||||||
|             payment_id: authentication.payment_id, |             payment_id: authentication.payment_id, | ||||||
|  | |||||||
| @ -50,7 +50,7 @@ impl TryFrom<storage::Authentication> for AuthenticationResponse { | |||||||
|             challenge_request: authentication.challenge_request, |             challenge_request: authentication.challenge_request, | ||||||
|             acs_reference_number: authentication.acs_reference_number, |             acs_reference_number: authentication.acs_reference_number, | ||||||
|             acs_trans_id: authentication.acs_trans_id, |             acs_trans_id: authentication.acs_trans_id, | ||||||
|             three_dsserver_trans_id: authentication.three_ds_server_trans_id, |             three_dsserver_trans_id: authentication.threeds_server_transaction_id, | ||||||
|             acs_signed_content: authentication.acs_signed_content, |             acs_signed_content: authentication.acs_signed_content, | ||||||
|         }) |         }) | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -0,0 +1,2 @@ | |||||||
|  | -- This file should undo anything in `up.sql` | ||||||
|  | ALTER TABLE authentication ADD COLUMN three_dsserver_trans_id VARCHAR; | ||||||
| @ -0,0 +1,2 @@ | |||||||
|  | -- Your SQL goes here | ||||||
|  | ALTER TABLE authentication DROP COLUMN three_dsserver_trans_id; | ||||||
		Reference in New Issue
	
	Block a user
	 Hrithikesh
					Hrithikesh