Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/azure-cli/azure/cli/command_modules/dms/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
-) source -> target :: task type
1) SQL -> SQLDB :: OfflineMigration
2) PostgreSQL -> AzureDbForPostgreSql :: OnlineMigration
3) MySQL -> AzureDbForMySQL :: OfflineMigration
3) MySQL -> AzureDbForMySQL :: OfflineMigration, OnlineMigration, ReplicateChanges
parameters:
- name: --task-type
type: string
Expand Down Expand Up @@ -287,7 +287,9 @@
// optional, migrates the enumerated events
'selected_events': [
'sourceSchema1.nightly_maintenance'
]
],
// Optional. If true, DMS will migrate the source database schema to the target.
"select_database_for_schema_migration": "true|false"
},
...n
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def create_db_input(database, has_schema_migration_options):
set_optional(db_properties, 'selectedTriggers', database, 'selected_triggers', throw_if_not_list)
set_optional(db_properties, 'selectedRoutines', database, 'selected_routines', throw_if_not_list)
set_optional(db_properties, 'selectedEvents', database, 'selected_events', throw_if_not_list)
set_optional(db_properties,
'selectDatabaseForSchemaMigration',
database,
'select_database_for_schema_migration')

if len(db_properties) > 0:
db_input.additional_properties = db_properties
Expand Down