From 1745f3f25fb2edfb0ed82e9178b57264500d1aae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Jul 2023 02:18:48 +0200 Subject: [PATCH] Fix add missing ext_payment_site --- htdocs/install/mysql/migration/17.0.0-18.0.0.sql | 1 + htdocs/install/mysql/tables/llx_paiement.sql | 4 ++-- htdocs/install/mysql/tables/llx_societe_rib.sql | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index dc34aaf6518..9955a58e18f 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -465,6 +465,7 @@ ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_statut (statut); ALTER TABLE fk_product_price_product DROP FOREIGN KEY fk_product_price_product; +ALTER TABLE llx_societe_rib ADD COLUMN ext_payment_site varchar(128); -- Drop the composite unique index that exists on llx_commande_fournisseur to rebuild a new one without the fk_soc. -- The old design allowed for a duplicate reference as long as fk_soc was not the same. diff --git a/htdocs/install/mysql/tables/llx_paiement.sql b/htdocs/install/mysql/tables/llx_paiement.sql index 84cdc86b29a..619054c6d95 100644 --- a/htdocs/install/mysql/tables/llx_paiement.sql +++ b/htdocs/install/mysql/tables/llx_paiement.sql @@ -32,8 +32,8 @@ create table llx_paiement fk_paiement integer NOT NULL, -- type of payment in llx_c_paiement num_paiement varchar(50), note text, - ext_payment_id varchar(255), -- external id of payment (for example Stripe charge id) - ext_payment_site varchar(128), -- name of external paymentmode (for example 'stripe') + ext_payment_id varchar(255), -- external id of payment (for example Stripe payment intent ID 'pi_...:cus_...@pk_live_...') + ext_payment_site varchar(128), -- name of external paymentmode (for example 'StripeLive') fk_bank integer NOT NULL DEFAULT 0, fk_user_creat integer, -- utilisateur qui a cree l'info fk_user_modif integer, -- utilisateur qui a modifie l'info diff --git a/htdocs/install/mysql/tables/llx_societe_rib.sql b/htdocs/install/mysql/tables/llx_societe_rib.sql index a798f6ac594..337d093f7f5 100644 --- a/htdocs/install/mysql/tables/llx_societe_rib.sql +++ b/htdocs/install/mysql/tables/llx_societe_rib.sql @@ -69,10 +69,12 @@ create table llx_societe_rib starting_date date, total_amount_of_all_payments double(24,8), - --For Stripe + --For Stripe, Stancer, ... stripe_card_ref varchar(128), -- 'card_...' stripe_account varchar(128), -- 'pk_live_...' + ext_payment_site varchar(128), -- name of external paymentmode (for example 'StripeLive') + comment varchar(255), ipaddress varchar(68), status integer NOT NULL DEFAULT 1, -- 1=ACTIVE, 0=IN_TRASH