feat: link official news to Ubisoft
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user