From 0a9978e1af6eb01491b76fad4b736003d1289a73 Mon Sep 17 00:00:00 2001 From: Manjunath Tapali Date: Tue, 30 Jul 2024 19:02:16 +0530 Subject: [PATCH] revert schema diff changes --- destination_sdk.proto | 21 +------------------ .../destination/python/configuration.json | 1 + 2 files changed, 2 insertions(+), 20 deletions(-) create mode 100644 examples/destination/python/configuration.json diff --git a/destination_sdk.proto b/destination_sdk.proto index e26678f..66c4c76 100644 --- a/destination_sdk.proto +++ b/destination_sdk.proto @@ -55,26 +55,7 @@ message CreateTableResponse { message AlterTableRequest { map configuration = 1; string schema_name = 2; - string table_name = 3; - repeated SchemaDiff changes = 4; -} - -message SchemaDiff { - oneof change { - Column add_column = 1; - ChangeType change_column_type = 2; - PrimaryKey update_primary_keys = 3; - } -} - -message PrimaryKey { - repeated string column_name = 1; -} - -message ChangeType { - string column_name = 1; - DataType new_type = 2; - optional DataTypeParams params = 3; + Table table = 3; } message AlterTableResponse { diff --git a/examples/destination/python/configuration.json b/examples/destination/python/configuration.json new file mode 100644 index 0000000..5fe7845 --- /dev/null +++ b/examples/destination/python/configuration.json @@ -0,0 +1 @@ +{"url":"https://exuberant-buffalo-525.convex.cloud","key":"https://exuberant-buffalo-525.convex.site"} \ No newline at end of file