fmwviormv / sqlite-net

Automatically exported from code.google.com/p/sqlite-net
0 stars 0 forks source link

Moving [PrimaryKey] attribute from one property to another does not trigger an automatic migration #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a table with two columns and a PrimaryKey.
2. Move the [PrimaryKey] attribute from on column to the other.
3. The table is not recreated, so InsertOrReplace still uses the old column.

What is the expected output? What do you see instead?
The table should be recreated or its primary key switched to the column with 
the PrimaryKey attribute.

What version of the product are you using? On what operating system?
Version: Jan 30, 2013

Original issue reported on code.google.com by Diego.Fu...@razorgator.com on 22 Feb 2013 at 2:07