Fix broken primary key check for SqliteSchema.