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 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
relations Updated Post and Author model permissible method (#9966) 2018-10-09 18:03:13 +07:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
api-key.js Updated ApiKey onSaving to forward options (#9994) 2018-10-14 16:54:10 +07:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
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 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js 🐛 Fixed migration from v1 to 2.2.1 (#9984) 2018-10-11 09:04:47 +02:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Stopped api key from assigning the 'Owner' role (#9971) 2018-10-12 15:38:57 +07:00
session.js Created Session Model (#9909) 2018-09-27 14:31:39 +02:00
settings.js Added session_secret setting to schema (#9953) 2018-10-05 12:25:51 +01:00
subscriber.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
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