You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Calling addUpgradeStatement() with SQL statements containing obvious syntax errors silently fails.
Expected behavior:
I expect the function to error when executing the statements. Instead, I get errors after initialization at "runtime" when I query my tables that were not created because of invalid upgrade statements.
Steps to reproduce:
Change the upgrade statements in this demo to contain obvious errors.
Related code:
{
toVersion: 1,
statements: [`CREATE TABLE IF NOT EXISTS tires (id NOT_A_TYPE);`, `CREATE; T1asd`, ''],
}
Plugin version:
6.0.2
Platform(s):
Web
Current behavior:
Calling
addUpgradeStatement()
with SQL statements containing obvious syntax errors silently fails.Expected behavior:
I expect the function to error when executing the statements. Instead, I get errors after initialization at "runtime" when I query my tables that were not created because of invalid upgrade statements.
Steps to reproduce:
Change the upgrade statements in this demo to contain obvious errors.
Related code:
Capacitor doctor:
The text was updated successfully, but these errors were encountered: