sqlite

ALTER COLUMN in sqlite


How do I alter column in sqlite? This is in Postgresql

ALTER TABLE books_book ALTER COLUMN publication_date DROP NOT NULL;

I believe there is no ALTER COLUMN in sqlite at all, only ALTER TABLE is supported.

Any idea? Thanks!


Solution

  • There's no ALTER COLUMN in sqlite.

    I believe your only option is to:

    This other Stackoverflow answer explains the process in details