fix migration

This commit is contained in:
Andrea Vos 2025-09-02 21:44:19 +02:00
parent b706642229
commit 7adb54272d

View File

@ -19,16 +19,12 @@ create table users_dg_tmp
loginAttempts TEXT, loginAttempts TEXT,
timesheets TEXT, timesheets TEXT,
socialLookup INTEGER default '0' not null, socialLookup INTEGER default '0' not null,
activeSubscriptionId text,
subscriptionData TEXT default NULL,
activeSubscription INTEGER default 0 not null,
personally TEXT default NULL personally TEXT default NULL
); );
insert into users_dg_tmp(id, username, email, roles, avatarSource, bannedReason, suspiciousChecked, usernameNorm, insert into users_dg_tmp(id, username, email, roles, avatarSource, bannedReason, suspiciousChecked, usernameNorm,
bannedTerms, bannedBy, lastActive, banSnapshot, inactiveWarning, adminNotifications, bannedTerms, bannedBy, lastActive, banSnapshot, inactiveWarning, adminNotifications,
loginAttempts, timesheets, socialLookup, activeSubscriptionId, subscriptionData, loginAttempts, timesheets, socialLookup, personally)
activeSubscription, personally)
select id, select id,
username, username,
email, email,
@ -46,9 +42,6 @@ select id,
loginAttempts, loginAttempts,
timesheets, timesheets,
socialLookup, socialLookup,
activeSubscriptionId,
subscriptionData,
activeSubscription,
null null
from users; from users;