I've encountered a error when I try drop a table.
In a previous DDB schema upgrade, I did this:
And now I am trying to remove it in another upgrade, as I ended up not needing it:
But I get an error:
android.database.sqlite.SQLiteException: near "DROP": syntax error (code 1): , while compiling: ALTER TABLE Patients DROP COLUMN pBestFVC
Tried to search but couldn't make any headway.
In a previous DDB schema upgrade, I did this:
B4X:
Sub UpdateDB3_4(sq As SQL)
'add personal Best
SQL.ExecNonQuery("ALTER TABLE Patients ADD COLUMN pBestFVC Integer")
And now I am trying to remove it in another upgrade, as I ended up not needing it:
B4X:
Sub UpdateDB4_5(sq As SQL)
'and get rid of peronal bests again
SQL.ExecNonQuery("ALTER TABLE Patients DROP COLUMN pBestFVC")
But I get an error:
android.database.sqlite.SQLiteException: near "DROP": syntax error (code 1): , while compiling: ALTER TABLE Patients DROP COLUMN pBestFVC
Tried to search but couldn't make any headway.