Ghost/core/server
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
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
data Added unique constraint notation to schema definition 2021-02-04 13:37:20 +13:00
lib Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
models Added unique constraint notation to schema definition 2021-02-04 13:37:20 +13:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
translations Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Added "maintenance" app serving 503 page 2021-02-02 16:11:35 +00:00
index.js Refactored maintenance app to be a class with DI 2021-02-02 16:11:35 +00:00
overrides.js Improved threading performance on non-SQLite clients 2020-11-30 13:27:40 +13:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00