Fix Kurz-URL: Shortening server-seitig beim Erstellen, kein CORS, sync kopieren
This commit is contained in:
@@ -521,13 +521,11 @@ if (!db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='cal
|
||||
`);
|
||||
}
|
||||
|
||||
// upload_shares Fehlversuche-Tracking
|
||||
// short_url auf upload_shares
|
||||
{
|
||||
const usCols = db.pragma('table_info(upload_shares)').map(c => c.name);
|
||||
if (!usCols.includes('failed_attempts'))
|
||||
db.exec('ALTER TABLE upload_shares ADD COLUMN failed_attempts INTEGER DEFAULT 0');
|
||||
if (!usCols.includes('deactivated_reason'))
|
||||
db.exec("ALTER TABLE upload_shares ADD COLUMN deactivated_reason TEXT DEFAULT NULL");
|
||||
const cols = db.pragma('table_info(upload_shares)').map(c => c.name);
|
||||
if (!cols.includes('short_url'))
|
||||
db.exec('ALTER TABLE upload_shares ADD COLUMN short_url TEXT DEFAULT NULL');
|
||||
}
|
||||
|
||||
module.exports = db;
|
||||
|
||||
Reference in New Issue
Block a user