Fixing missing pages table during migration