
The attribute is not seems active, so I delete it and recreate the attribute by the same name "userId" but end up getting this error: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'userId'
TL;DR
Developers are unable to add an attribute due to an inactive attribute issue. After deleting and recreating the attribute with the same name 'userId,' an error arises indicating a duplicate column name. This error occurs because the column 'userId' already exists in the database. The solution is to check the database schema and ensure the attribute is not already present before attempting to recreate it.Recommended threads
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- React native app login via Safari
Hi! I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari co...
- Invalid credentials after migration
Hi everyone! After migrating our self-hosted Appwrite 1.3.1 to another server (staging, so a different domain), we are now getting 'Invalid credentials' when ...
