Skip to content
Advertisement

Problems with insertions after adding new tables to database

UPDATE:

I was trying to add new tables recently, but after adding those new tables the insertion in my old table is no longer working.

I already cleared my DB and reinstall the app, but when I try to insert the new data (client) into my old table it isn’t working and doesn’t appear any error message.

The DB code (client table is my first table , the others are the new tables):

I didn’t changed my method to addclient, it’s the same and was working perfectly

Advertisement

Answer

Sometimes it happens when you change your DB schema and do not update the version. let’s say you first created the DB and passed the version 1. if you change your DB next time you must update your version from 1 to 2. try this and let me know if it works.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement