mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added note for using id as slug for free tier
refs e54395eab5
- adds comment on why we used `slugify(id)` instead of `slugify(name)` for free tier to avoid future confusion
This commit is contained in:
parent
1025be91d8
commit
50645e8b18
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ module.exports = createTransactionalMigration(
|
|||
const id = ObjectID().toHexString();
|
||||
|
||||
logging.info(`Adding tier "${name}"`);
|
||||
|
||||
// `slugify(id) is used to ensure unique slug here, as existing tiers could be using any name including "Free"
|
||||
// slugs are not used anywhere user-facing so the value is acceptable
|
||||
await knex('products')
|
||||
.insert({
|
||||
id: id,
|
||||
|
|
Loading…
Reference in a new issue