Ghost/core/server/models
Rishabh Garg c638863cb9 Updated webhooks schema and add relation (#10018)
* Extended webhooks schema/model and connected with integrations

refs #9942

- Updated webhooks schema with new columns - name, integration_id, secret, last_triggered_at, api_version
- Updated webhooks and integration model to map relationships
- Updated schema hash
- Updated test utils to exclude new webhooks columns for response comparison

* Added migration script for new webhooks columns

refs #9942

- Added migration script in 2.3 to add new columns to webhooks

* Updated schema hash

* Updated maxLength for api_version in schema

* Removed concurrency value from migration script

* Added defaults for webhooks model

* Added status field to webhooks for last trigger status

* Updated schema hash

* Fixed tests with status field

* Removed concurrency value in migration script

* Cleanup

* Updated schema with new fields

 - last_triggered_status, last_triggered_error
2018-10-17 18:17:13 +07:00
..
base Allowed columns options for findAll 2018-10-12 21:13:20 +02:00
plugins
relations Updated Post and Author model permissible method (#9966) 2018-10-09 18:03:13 +07:00
accesstoken.js
api-key.js Updated ApiKey onSaving to forward options (#9994) 2018-10-14 16:54:10 +07:00
app-field.js
app-setting.js
app.js
client-trusted-domain.js
client.js
index.js Added mobiledoc revisions functionality 2018-10-09 15:31:09 +02:00
integration.js Updated webhooks schema and add relation (#10018) 2018-10-17 18:17:13 +07:00
invite.js Respected hasUserPermissions & hasAppPermissions in invite model 2018-10-16 18:00:05 +02:00
mobiledoc-revision.js Added mobiledoc revisions functionality 2018-10-09 15:31:09 +02:00
permission.js
post.js 🐛 Fixed migration from v1 to 2.2.1 (#9984) 2018-10-11 09:04:47 +02:00
refreshtoken.js
role.js Stopped api key from assigning the 'Owner' role (#9971) 2018-10-12 15:38:57 +07:00
session.js
settings.js Added session_secret setting to schema (#9953) 2018-10-05 12:25:51 +01:00
subscriber.js
tag.js Refactor URL generation from models (#9917) 2018-10-03 15:44:30 +02:00
user.js Moved toJSON call to api v0.1 controller for ownership transfer 2018-10-12 18:12:16 +02:00
webhook.js Updated webhooks schema and add relation (#10018) 2018-10-17 18:17:13 +07:00