Roger
Roger

Reputation: 4259

Update sqlite column type

The columns in my table are currently "text", I need to change them to "text collate nocase". How would I go about doing this without losing data?

Upvotes: 1

Views: 557

Answers (2)

Jason McCreary
Jason McCreary

Reputation: 73021

Just run an ALTER TABLE command on the column. You should not lose data, but test first.

Check out the docs for the exact syntax;

Upvotes: 3

kobaltz
kobaltz

Reputation: 7070

I recently had to do something similar. I used RazorSQL.

RazorSQL

Upvotes: 0

Related Questions