Not unneeded I think, but these alter table instructions are PostgreSQL specific. I'm sure that in SQlite the table must be altered in a different way, which I haven't investigated.