Skip to content

Conversation

@matthew-lim-matthew-lim
Copy link
Contributor

If the table sql table isn't created properly, then the program will fail because ensureDatabase() will think that the table already exists because the database already exists.

This is highly prone to failure, because when the authentication isn't completed successfully, it can create a database that doesn't have a table.

The improvement is to use a CREATE TABLE IF NOT EXISTS sql statement so that the table can be created, even if the database exists without a sql table.

@matthew-lim-matthew-lim matthew-lim-matthew-lim requested a review from a team as a code owner November 8, 2025 08:02
@jasonjoh
Copy link
Member

Thanks @matthew-lim-matthew-lim!

@jasonjoh jasonjoh merged commit 054df8b into microsoftgraph:main Nov 13, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants