ALTER TABLE "files" RENAME TO "files_non_strict";

CREATE TABLE IF NOT EXISTS "files" (
    id TEXT PRIMARY KEY,
    created_at TEXT NOT NULL,
    expires_at TEXT NOT NULL,
    filename TEXT NOT NULL,
    content_length INTEGER NOT NULL
) STRICT;

INSERT INTO files (id, created_at, expires_at, filename, content_length)
  SELECT id, created_at, expires_at, filename, content_length
  FROM files_non_strict;

DROP TABLE files_non_strict;
