sqlite-net migration

vandremvandrem USMember ✭✭

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

  • GuillermoGutierrezGuillermoGutierrez ESMember ✭✭✭

    You can use Execute method of SQLiteConnection to manually execute Alter table methods. Alternatively, you can use DropTable and CreateTable again to let SQLite-Net re-create the table scheme if you don't care about the stored information.

  • vandremvandrem USMember ✭✭

    I must have missed the execute command when I was looking through the documentation. Thats exactly what I was looking for. Thanks.

Sign In or Register to comment.