feat: link official news to Ubisoft
Validate and deploy production / validate (push) Successful in 23s
Validate and deploy staging / validate (push) Successful in 28s
Validate and deploy production / deploy (push) Successful in 49s
Validate and deploy staging / deploy (push) Successful in 28s

This commit is contained in:
jb
2026-08-01 22:26:52 -04:00
parent bc40a737a8
commit dc08eefce6
13 changed files with 618 additions and 42 deletions
+21
View File
@@ -679,6 +679,27 @@ if (articleRevisionColumns.some((column) => column.name === 'plaint_text')) {
);
}
const externalNewsSourceColumns = await (
await database.prepare("PRAGMA table_info('external_news_sources')")
).all();
if (
externalNewsSourceColumns.length &&
!externalNewsSourceColumns.some((column) => column.name === 'thumbnail_url')
) {
console.log('Adding Ubisoft News thumbnail metadata.');
await database.exec(
'ALTER TABLE external_news_sources ADD COLUMN thumbnail_url TEXT',
);
}
if (
externalNewsSourceColumns.length &&
!externalNewsSourceColumns.some((column) => column.name === 'thumbnail_alt')
) {
await database.exec(
"ALTER TABLE external_news_sources ADD COLUMN thumbnail_alt TEXT NOT NULL DEFAULT ''",
);
}
const currentModerationScanColumns = await (
await database.prepare("PRAGMA table_info('content_moderation_scans')")
).all();