Ghost/core
Naz 6b61bcf123 Added unique constraint notation to schema definition
refs https://github.com/TryGhost/Ghost/issues/12567

- Introduced here @@UNIQUE_CONSTRAINTS@@ notation allows to create unique contraints over multiple database fields. This will be needed to change posts' table unique constraint from `slug` to `slug+type`.
- The notation is equivalent to SQL's: UNIQUE(column_name1,column_name2)
- Example use in schema:
posts: {
    slug: {type: 'string', maxlength: 191, nullable: false},
    type: {type: 'string', maxlength: 50, nullable: false, defaultTo: 'post', validations: {isIn: [['post', 'page']]}},
    '@@UNIQUES@@': [
        ['slug', 'type']
    ]
}
2021-02-04 13:37:20 +13:00
..
client@d006f734f0 Updated Ghost-Admin to v4.0.0-alpha.0 2021-02-02 16:19:39 +00:00
frontend Bumped portal to 1.0.0-rc 2021-02-03 08:43:11 +05:30
server Added unique constraint notation to schema definition 2021-02-04 13:37:20 +13:00
shared Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00