-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration to add donation_message to table
ref PLG-197 - DB migration to add `donation_message` to `donation_payment_events` table
- Loading branch information
1 parent
a79ab03
commit fa7cc26
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...rsions/5.91/2024-08-28-05-28-22-add-donation-message-column-to-donation-payment-events.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// For information on writing migrations, see https://www.notion.so/ghost/Database-migrations-eb5b78c435d741d2b34a582d57c24253 | ||
|
||
const {createAddColumnMigration} = require('../../utils'); | ||
|
||
module.exports = createAddColumnMigration('donation_payment_events', 'donation_message', { | ||
type: 'string', | ||
maxlength: 255, // as per stripe limitation for custom fields https://docs.stripe.com/payments/checkout/custom-fields | ||
nullable: true | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters