Abdulquadri Oshoare
07/15/2024, 1:58 PMkapa.ai
07/15/2024, 1:58 PMsql -- assumes your schema was 'default' -- replace `{{stream_name}}` with replace your stream name CREATE TABLE airbyte_internal.default_raw__stream_{{stream_name}} ( _airbyte_raw_id VARCHAR(64) PRIMARY KEY, _airbyte_data NVARCHAR(MAX), _airbyte_extracted_at DATETIMEOFFSET(7) DEFAULT SYSDATETIMEOFFSET(), _airbyte_loaded_at DATETIMEOFFSET(7), _airbyte_meta NVARCHAR(MAX) ); INSERT INTO airbyte_internal.default_raw__stream_{{stream_name}} SELECT _airbyte_ab_id AS _airbyte_raw_id, _airbyte_data as _airbyte_data, _airbyte_emitted_at as _airbyte_extracted_at, NULL as _airbyte_loaded_at, NULL as _airbyte_meta FROM airbyte._airbyte_raw_{{stream_name}}
Please note that this upgrade will ignore any existing raw tables and will not migrate any data to the new schema. Also, Airbyte will not delete any of your v1 data. If you're still encountering issues, it might be helpful to check the [Github Issues](https://github.com/airbytehq/airbyte/issues) related to Airbyte for any similar problems and their solutions.Abdulquadri Oshoare
07/15/2024, 1:59 PMkapa.ai
07/15/2024, 1:59 PMkapa.ai
07/15/2024, 2:00 PM{{stream_name}}
with the name of your stream. 6. Execute the query. Please ensure you have the necessary permissions to create and modify tables in your database.