diff --git a/website/dbt-versions.js b/website/dbt-versions.js index 594d0f51c36..52b68d6c084 100644 --- a/website/dbt-versions.js +++ b/website/dbt-versions.js @@ -31,6 +31,10 @@ exports.versions = [ ] exports.versionedPages = [ + { + "page": "reference/resource-properties/deprecation_date", + "firstVersion": "1.6", + }, { "page": "reference/commands/retry", "firstVersion": "1.6", diff --git a/website/docs/reference/model-properties.md b/website/docs/reference/model-properties.md index b88f9fd6b98..730432c88af 100644 --- a/website/docs/reference/model-properties.md +++ b/website/docs/reference/model-properties.md @@ -17,6 +17,7 @@ models: [docs](/reference/resource-configs/docs): show: true | false [latest_version](/reference/resource-properties/latest_version): + [deprecation_date](/reference/resource-properties/deprecation_date): [access](/reference/resource-properties/access): private | protected | public [config](/reference/resource-properties/config): [](/reference/model-configs): diff --git a/website/docs/reference/resource-properties/deprecation_date.md b/website/docs/reference/resource-properties/deprecation_date.md new file mode 100644 index 00000000000..9fe9e2e1098 --- /dev/null +++ b/website/docs/reference/resource-properties/deprecation_date.md @@ -0,0 +1,32 @@ +--- +resource_types: [models] +datatype: deprecation_date +required: no +--- + + + +```yml +models: + - name: my_model + description: deprecated + deprecation_date: 1999-01-01 00:00:00.00+00:00 +``` + + + + +```yml +version: 2 +models: + - name: my_model + description: deprecating in the future + deprecation_date: 2999-01-01 00:00:00.00+00:00 +``` + + + +## Definition + +The deprecation date of the model in YAML DateTime format. + diff --git a/website/sidebars.js b/website/sidebars.js index 742bcb814a7..b37f3562397 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -594,6 +594,7 @@ const sidebarSettings = { "reference/resource-properties/columns", "reference/resource-properties/config", "reference/resource-properties/constraints", + "reference/resource-properties/deprecation_date", "reference/resource-properties/description", "reference/resource-properties/latest_version", "reference/resource-properties/include-exclude",