Ghost/ghost/members-api/lib
Naz f2a7790cc9 Added plan nickname fallback to empty string (#126)
no issue

- This solves a problem when connected Stripe plan doesn't have plan `nickname` filled out (possible with older versions of Stripe API)
- Defaulting to empty string instead of creating a migration because SQLite doesn't support `ALTER ... MODIFY` syntax and thus knex can't altter the table that easy
- "Marks the column as an alter / modify, instead of the default add. Note: This only works in .alterTable() and is not supported by SQlite or Amazon Redshift. Alter is not done incrementally over older column type so if you like to add notNull and keep the old default value, the alter statement must contain both .notNull().defaultTo(1).alter(). If one just tries to add .notNull().alter() the old default value will be dropped." (ref. https://knexjs.org/#Chainable)
2020-02-10 18:59:52 +08:00
..
stripe Added plan nickname fallback to empty string (#126) 2020-02-10 18:59:52 +08:00
common.js Added subscription update middleware (#107) 2019-12-12 15:19:36 +07:00
metadata.js Extracted metadata get/set methods into internal metadata module 2020-01-13 15:45:22 +07:00
tokens.js Updated members-api to use magic-link 2019-09-03 15:35:04 +08:00
users.js Added ability to link member to existing stripe customer (#120) 2020-01-28 19:00:28 +07:00