mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
18 lines
581 B
JavaScript
18 lines
581 B
JavaScript
|
|
/*
|
||
|
|
* Copyright (c) 2026 by Christian Kellner.
|
||
|
|
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
// We have moved the previous immoscout_details setting to provider_details and enable this by default
|
||
|
|
// We also set it to false per default as this is increasing the chance to be detected as a bot by a lot
|
||
|
|
export function up(db) {
|
||
|
|
db.exec(`
|
||
|
|
UPDATE settings
|
||
|
|
SET name = 'provider_details', value = false
|
||
|
|
WHERE name = 'immoscout_details'
|
||
|
|
AND NOT EXISTS (
|
||
|
|
SELECT 1 FROM settings WHERE name = 'provider_details'
|
||
|
|
);
|
||
|
|
`);
|
||
|
|
}
|