diff --git a/packages/@sanity/base/src/schema/types/deprecatedDate.js b/packages/@sanity/base/src/schema/types/deprecatedDate.js index a7e9a98828bb..2a7ef7f62740 100644 --- a/packages/@sanity/base/src/schema/types/deprecatedDate.js +++ b/packages/@sanity/base/src/schema/types/deprecatedDate.js @@ -1,10 +1,15 @@ import richDate from './richDate' +import generateHelpUrl from '@sanity/generate-help-url' let hasWarned = false export default Object.assign({}, richDate, { get name() { if (!hasWarned) { - console.warn('Heads up! The `date` type has been renamed to `richDate`. Please update your schema') + // eslint-disable-next-line no-console + console.warn( + 'Heads up! The `date` type has been renamed to `richDate`. Please update your schema. See %s for more info.', + generateHelpUrl('migrate-to-rich-date') + ) hasWarned = true } return 'date'