Skip to content

Commit 89d8660

Browse files
committed
add status column
1 parent 9c79204 commit 89d8660

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

ghost/core/core/server/data/migrations/versions/6.6/2025-10-28-18-29-37-add-outbox-table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const {addTable} = require('../../utils');
33
module.exports = addTable('outbox', {
44
id: {type: 'string', maxlength: 24, nullable: false, primary: true},
55
event_type: {type: 'string', maxlength: 50, nullable: false},
6+
status: {type: 'string', maxlength: 20, nullable: false, defaultTo: 'pending'},
67
payload: {type: 'text', maxlength: 65535, nullable: false},
78
created_at: {type: 'dateTime', nullable: false},
89
retry_count: {type: 'integer', nullable: false, defaultTo: 0},

ghost/core/core/server/data/schema/schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,7 @@ module.exports = {
11191119
outbox: {
11201120
id: {type: 'string', maxlength: 24, nullable: false, primary: true},
11211121
event_type: {type: 'string', maxlength: 50, nullable: false},
1122+
status: {type: 'string', maxlength: 20, nullable: false, defaultTo: 'pending'},
11221123
payload: {type: 'text', maxlength: 65535, nullable: false},
11231124
created_at: {type: 'dateTime', nullable: false},
11241125
retry_count: {type: 'integer', nullable: false, defaultTo: 0},

ghost/core/test/unit/server/data/schema/integrity.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const validateRouteSettings = require('../../../../../core/server/services/route
3535
*/
3636
describe('DB version integrity', function () {
3737
// Only these variables should need updating
38-
const currentSchemaHash = '46790a2bcbfb8806ffab8ad25c3fbef4';
38+
const currentSchemaHash = '92df18e4e3d004efc1105d08343c28d9';
3939
const currentFixturesHash = '0877727032b8beddbaedc086a8acf1a2';
4040
const currentSettingsHash = 'bb8be7d83407f2b4fa2ad68c19610579';
4141
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';

0 commit comments

Comments
 (0)