Skip to content

Commit 673b987

Browse files
committed
update docs
1 parent 8082a2c commit 673b987

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

docs/guides/table_migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Consider an existing table named `my_schema.existing_table`. Migrating this tabl
131131

132132
c. Create the model in the SQLMesh project without backfilling any data by running `sqlmesh plan [environment name] --empty-backfill --start 2024-01-01`, replacing "[environment name]" with an environment name other than `prod` and using the same start date from the `MODEL` DDL in step 3b.
133133

134-
4. Determine the name of the model's snapshot physical table by running `sqlmesh table_name my_schema.existing_table`. For example, it might return `sqlmesh__my_schema.existing_table_123456`.
134+
4. Determine the name of the model's snapshot physical table by running `sqlmesh table_name --env [environment name] my_schema.existing_table`. For example, it might return `sqlmesh__my_schema.existing_table_123456`.
135135
5. Rename the original table `my_schema.existing_table_temp` to `sqlmesh__my_schema.existing_table_123456`
136136
137137
The model would have code similar to:

docs/reference/cli.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,8 @@ Usage: sqlmesh table_name [OPTIONS] MODEL_NAME
559559
Prints the name of the physical table for the given model.
560560
561561
Options:
562-
--dev Print the name of the snapshot table used for previews in
563-
development environments.
564-
--help Show this message and exit.
562+
--environment, --env TEXT The environment to source the model version from.
563+
--help Show this message and exit.
565564
```
566565

567566
## test

0 commit comments

Comments
 (0)