Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Stripe
Commits
27837c01
Commit
27837c01
authored
4 years ago
by
mattwire
Committed by
mattwire
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix create sql for paymentintent table
parent
e7525595
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!152
6.6 to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/paymentintent_install.sql
+12
-12
12 additions, 12 deletions
sql/paymentintent_install.sql
with
12 additions
and
12 deletions
sql/paymentintent_install.sql
+
12
−
12
View file @
27837c01
CREATE
TABLE
IF
NOT
EXISTS
`civicrm_stripe_paymentintent`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'Unique ID'
,
`stripe_intent_id`
varchar
(
255
)
COMMENT
'The Stripe PaymentIntent/SetupIntent/PaymentMethod 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)'
,
`referrer`
varchar
(
255
)
NULL
COMMENT
'HTTP referrer of this paymentIntent'
,
`extra_data`
varchar
(
255
)
NULL
COMMENT
'Extra data collected to help with diagnostics (such as email, name)'
,
`stripe_intent_id`
varchar
(
255
)
COMMENT
'The Stripe PaymentIntent/SetupIntent/PaymentMethod 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
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'When was paymentIntent created'
,
`flags`
varchar
(
100
)
NULL
COMMENT
'Flags associated with this PaymentIntent (NC=no contributionID when doPayment called)'
,
`referrer`
varchar
(
255
)
NULL
COMMENT
'HTTP referrer of this paymentIntent'
,
`extra_data`
varchar
(
255
)
NULL
COMMENT
'Extra data collected to help with diagnostics (such as email, name)'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
INDEX
`UI_stripe_intent_id`
(
stripe_intent_id
)
UNIQUE
INDEX
`UI_stripe_intent_id`
(
stripe_intent_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
)
ENGINE
=
InnoDB
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment