I've seen in the documentation that there is auto-migration built into sql-lite net where it will add and remove columns if they are removed from the object but what can I do if, for example, the name of a property (and therefore its column) is changed? Is there any way to run an Alter command manually for example?
Posts
You can use
Execute
method ofSQLiteConnection
to manually execute Alter table methods. Alternatively, you can useDropTable
andCreateTable
again to let SQLite-Net re-create the table scheme if you don't care about the stored information.I must have missed the execute command when I was looking through the documentation. Thats exactly what I was looking for. Thanks.