Back

database removed but create say still exist

  • 0
  • Self Hosted
  • Tools
  • Databases
Suiii
14 Jan, 2024, 08:51

it logged deleted,

TypeScript
    databaseList.databases.map((database) => {
      databases.delete(database.$id);
      logger.info(`Appwrite: DELETED Database ${database.name}`);
    });
  }

  // create database
  const database = await databases.create(databaseId, "DMS DB", true);```
TL;DR
Summary: The developer deleted a database, but when trying to create a new one, it's showing that the database still exists. Solution: It seems that the code is not properly checking if the database exists before creating a new one. The developer should modify the code to ensure that the database is properly deleted before attempting to create a new one.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more