Skip to content

Commit cff0b8a

Browse files

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ghost/core/core/server/data/migrations/versions/6.28/2026-04-08-13-21-16-add-welcome-email-automation-runs-table.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const welcomeEmailAutomationRunsSpec = {
1515
step_attempts: {type: 'integer', unsigned: true, nullable: false, defaultTo: 0},
1616
exit_reason: {type: 'string', maxlength: 50, nullable: true, validations: {isIn: [['member not found', 'email send failed', 'member unsubscribed', 'member changed status', 'finished']]}},
1717
created_at: {type: 'dateTime', nullable: false},
18-
updated_at: {type: 'dateTime', nullable: true}
18+
updated_at: {type: 'dateTime', nullable: true},
19+
'@@INDEXES@@': [
20+
['ready_at']
21+
]
1922
};
2023

2124
module.exports = addTable('welcome_email_automation_runs', welcomeEmailAutomationRunsSpec);

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,10 @@ module.exports = {
11991199
step_attempts: {type: 'integer', unsigned: true, nullable: false, defaultTo: 0},
12001200
exit_reason: {type: 'string', maxlength: 50, nullable: true, validations: {isIn: [['member not found', 'email send failed', 'member unsubscribed', 'member changed status', 'finished']]}},
12011201
created_at: {type: 'dateTime', nullable: false},
1202-
updated_at: {type: 'dateTime', nullable: true}
1202+
updated_at: {type: 'dateTime', nullable: true},
1203+
'@@INDEXES@@': [
1204+
['ready_at']
1205+
]
12031206
},
12041207
automated_email_recipients: {
12051208
id: {type: 'string', maxlength: 24, nullable: false, primary: true},

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 = '5dc658325924440e0f6896036044d34b';
38+
const currentSchemaHash = '53f43c438d52059db1c7ced7fc5f957d';
3939
const currentFixturesHash = '2f86ab1e3820e86465f9ad738dd0ee93';
4040
const currentSettingsHash = 'a102b80d2ab0cd92325ed007c94d7da6';
4141
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';

0 commit comments

Comments
 (0)