Convert SQLite ROWID to primary key -


i have large table without primary key. instead, i've been using built-in rowid one.

problem: can't vacuum database, because:

the vacuum command may change rowids of entries in tables not have explicit integer primary key.

how can convert rowid integer primary key, preserving existing rowids , behavior (or otherwise vacuum not mess rowids)?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -