You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure Snowflake Schema via Config (#210) (#211)
* Update issue templates (#206)
* Update issue templates: Bug Report, Questions and Enhancement templates
* Create CONTRIBUTING.md
Initial workflow for contributing to schemachange repository
* Add support for specifying the schema via config
* Documentation: Include details on configuring the default schema
* Updated version and changelog
---------
Co-authored-by: podung <joe.depung@gmail.com>
Co-authored-by: Tyler White <90005851+sfc-gh-twhite@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
4
4
*The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).*
5
5
6
+
## [3.6.1] - 2023-11-15
7
+
### Added
8
+
- Allow passing snowflake schema as config or CLI parameter
9
+
6
10
## [3.6.0] - 2023-09-06
7
11
### Changed
8
12
- Fixed bug introduced in version 3.5.0 where the session state was not reset after a user script was run. This resulted in schemachange updates to the metadata table failing in some cases. schemachange will now reset the session back to the default settings after each user script is run
-r SNOWFLAKE_ROLE, --snowflake-role SNOWFLAKE_ROLE | The name of the role to use
388
391
-w SNOWFLAKE_WAREHOUSE, --snowflake-warehouse SNOWFLAKE_WAREHOUSE | The name of the default warehouse to use. Can be overridden in the change scripts.
389
392
-d SNOWFLAKE_DATABASE, --snowflake-database SNOWFLAKE_DATABASE | The name of the default database to use. Can be overridden in the change scripts.
393
+
-s SNOWFLAKE_SCHEMA, --snowflake-schema SNOWFLAKE_SCHEMA | The name of the default schema to use. Can be overridden in the change scripts.
390
394
-c CHANGE_HISTORY_TABLE, --change-history-table CHANGE_HISTORY_TABLE | Used to override the default name of the change history table (which is METADATA.SCHEMACHANGE.CHANGE_HISTORY)
391
395
--vars VARS | Define values for the variables to replaced in change scripts, given in JSON format (e.g. '{"variable1": "value1", "variable2": "value2"}')
392
396
--create-change-history-table | Create the change history table if it does not exist. The default is 'False'.
@@ -429,13 +433,13 @@ In order to run schemachange you must have the following:
429
433
schemachange is a single python script located at [schemachange/cli.py](schemachange/cli.py). It can be executed as follows:
parser_deploy.add_argument('-r', '--snowflake-role', type=str, help='The name of the default role to use', required=False)
817
823
parser_deploy.add_argument('-w', '--snowflake-warehouse', type=str, help='The name of the default warehouse to use. Can be overridden in the change scripts.', required=False)
818
824
parser_deploy.add_argument('-d', '--snowflake-database', type=str, help='The name of the default database to use. Can be overridden in the change scripts.', required=False)
825
+
parser_deploy.add_argument('-s', '--snowflake-schema', type=str, help='The name of the default schema to use. Can be overridden in the change scripts.', required=False)
819
826
parser_deploy.add_argument('-c', '--change-history-table', type=str, help='Used to override the default name of the change history table (the default is METADATA.SCHEMACHANGE.CHANGE_HISTORY)', required=False)
820
827
parser_deploy.add_argument('--vars', type=json.loads, help='Define values for the variables to replaced in change scripts, given in JSON format (e.g. {"variable1": "value1", "variable2": "value2"})', required=False)
821
828
parser_deploy.add_argument('--create-change-history-table', action='store_true', help='Create the change history schema and table, if they do not exist (the default is False)', required=False)
0 commit comments