Skip to content

Commit

Permalink
add detailed instructions (#5767)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
Add detailed instructions.

## Checklist

- [ x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ x] For [docs
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#about-versioning),
review how to [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content).
- [ x] Add a checklist item for anything that needs to happen before
this PR is merged, such as "needs technical review" or "change base
branch."

---------

Co-authored-by: Mirna Wong <[email protected]>
  • Loading branch information
wjhrdy and mirnawong1 authored Jul 12, 2024
1 parent 9461995 commit 440d317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/guides/mesh-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ models:
### Set up model versions
In this section, you will set up model versions by the Data Analytics team as they upgrade the `fct_orders` model while offering backward compatibility and a migration notice to the downstream Finance team.

1. Rename the existing model file from` models/core/fct_orders.sql` to `models/core/fct_orders_v1.sql`.
1. Rename the existing model file from `models/core/fct_orders.sql` to `models/core/fct_orders_v1.sql`.
2. Create a new file `models/core/fct_orders_v2.sql` and adjust the schema:
- Comment out `orders.status`
- Add a new field, `is_return` to indicate if an order was returned.
- Comment out `o.status` in the `final` CTE.
- Add a new field, `case when o.status = 'returned' then true else false end as is_return` to indicate if an order was returned.
3. Then, add the following to your `models/core/core.yml` file:
- The `is_return` column
- The two model `versions`
Expand Down

0 comments on commit 440d317

Please sign in to comment.