Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
capo
Stripe
Commits
7f1d1121
Commit
7f1d1121
authored
Oct 16, 2019
by
mattwire
Browse files
Make sure we specify the engine as InnoDB for the paymentintent table
parent
7aa7d4e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/paymentintent_install.sql
View file @
7f1d1121
CREATE
TABLE
IF
NOT
EXISTS
`civicrm_stripe_paymentintent`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique ID'
,
`paymentintent_id`
varchar
(
255
)
COMMENT
'The PaymentIntent ID'
,
`contribution_id`
int
unsigned
COMMENT
'FK ID from civicrm_contribution'
,
`payment_processor_id`
int
unsigned
COMMENT
'Foreign key to civicrm_payment_processor.id'
,
`description`
varchar
(
255
)
NULL
COMMENT
'Description of this paymentIntent'
,
`status`
varchar
(
25
)
NULL
COMMENT
'The status of the paymentIntent'
,
`identifier`
varchar
(
255
)
NULL
COMMENT
'An identifier that we can use in CiviCRM to find the paymentIntent if we do not have the ID (eg. session key)'
,
`contact_id`
int
unsigned
COMMENT
'FK to Contact'
,
`created_date`
timestamp
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'When was paymentIntent created'
,
`flags`
varchar
(
100
)
NULL
COMMENT
'Flags associated with this PaymentIntent (NC=no contributionID when doPayment called)'
,
PRIMARY
KEY
(
`id`
)
,
UNIQUE
INDEX
`UI_paymentintent_id`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique ID'
,
`paymentintent_id`
varchar
(
255
)
COMMENT
'The PaymentIntent ID'
,
`contribution_id`
int
unsigned
COMMENT
'FK ID from civicrm_contribution'
,
`payment_processor_id`
int
unsigned
COMMENT
'Foreign key to civicrm_payment_processor.id'
,
`description`
varchar
(
255
)
NULL
COMMENT
'Description of this paymentIntent'
,
`status`
varchar
(
25
)
NULL
COMMENT
'The status of the paymentIntent'
,
`identifier`
varchar
(
255
)
NULL
COMMENT
'An identifier that we can use in CiviCRM to find the paymentIntent if we do not have the ID (eg. session key)'
,
`contact_id`
int
unsigned
COMMENT
'FK to Contact'
,
`created_date`
timestamp
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'When was paymentIntent created'
,
`flags`
varchar
(
100
)
NULL
COMMENT
'Flags associated with this PaymentIntent (NC=no contributionID when doPayment called)'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
INDEX
`UI_paymentintent_id`
(
paymentintent_id
)
,
CONSTRAINT
FK_civicrm_stripe_paymentintent_payment_processor_id
FOREIGN
KEY
(
`payment_processor_id`
)
REFERENCES
`civicrm_payment_processor`
(
`id`
)
ON
DELETE
SET
NULL
,
CONSTRAINT
FK_civicrm_stripe_paymentintent_contact_id
FOREIGN
KEY
(
`contact_id`
)
REFERENCES
`civicrm_contact`
(
`id`
)
ON
DELETE
CASCADE
)
;
)
,
CONSTRAINT
FK_civicrm_stripe_paymentintent_payment_processor_id
FOREIGN
KEY
(
`payment_processor_id`
)
REFERENCES
`civicrm_payment_processor`
(
`id`
)
ON
DELETE
SET
NULL
,
CONSTRAINT
FK_civicrm_stripe_paymentintent_contact_id
FOREIGN
KEY
(
`contact_id`
)
REFERENCES
`civicrm_contact`
(
`id`
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment