Skip to content

Commit b0d520d

Browse files
author
Jose Alberto Calvo Vargas
committed
Add readme
1 parent 6dc57d1 commit b0d520d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

drop_column/README.MD

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Alter datasource removing a column
2+
3+
[Pull Request](https://github.com/tinybirdco/use-case-examples/pull/347)
4+
5+
- Just remove the column from the schema and apply the changes. If there are dependent materialized views the CLI will list them and ask for confirmation.
6+
7+
8+
```diff
9+
SCHEMA >
10+
- `version` LowCardinality(String) `json:$.version`,
11+
```
12+
13+
- Create a PR with the change above, a new branch will be created as part of the CI process. You can double check the changes checking the datasource schema.
14+
15+
- To deploy the change, merge to PR to you main branch, the CD job will run and will deploy the changes.
16+
17+
```
18+
...
19+
** Diffs from current commit 'fa782bcbd6907ba013b46c91097949e9413beaa1' and new '6dc57d17508da520fec72c1e970c736400c4cd38':
20+
modified: alter_default_value_in_column/datasources/analytics_events.datasource
21+
** Preparing commit ...
22+
** Processing ./datasources/analytics_events.datasource
23+
** Building dependencies
24+
** [DRY RUN] Deploying commit ...
25+
** [DRY RUN] Running 'analytics_events'
26+
** Deploying commit ...
27+
** Running 'analytics_events'
28+
** The description or schema of 'analytics_events' has changed.
29+
** - DROP COLUMN `version
30+
** The Data Source has been correctly updated.
31+
** 'analytics_events' created
32+
...
33+
```

0 commit comments

Comments
 (0)