This is an automated email from the ASF dual-hosted git repository. lynwee pushed a commit to branch lw-cp0223 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 8109d4a977a859c2af856054642f14c2e88eabf4 Author: Lynwee Hou <[email protected]> AuthorDate: Fri Feb 23 20:10:38 2024 +0800 fix(azuredevops): fix e2e test errors --- backend/python/plugins/azuredevops/azuredevops/migrations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/python/plugins/azuredevops/azuredevops/migrations.py b/backend/python/plugins/azuredevops/azuredevops/migrations.py index ab33e8a98..b6924e037 100644 --- a/backend/python/plugins/azuredevops/azuredevops/migrations.py +++ b/backend/python/plugins/azuredevops/azuredevops/migrations.py @@ -196,4 +196,6 @@ def add_queue_time_field_in_tool_azuredevops_builds(b: MigrationScriptBuilder): @migration(20240223170000, name="add updated_date field in _tool_azuredevops_gitrepositories") def add_updated_date_field_in_tool_azuredevops_gitrepositories(b: MigrationScriptBuilder): - b.add_column('_tool_azuredevops_gitrepositories', 'updated_date', 'datetime(3) DEFAULT NULL') + table = "_tool_azuredevops_gitrepositories" + b.execute(f'ALTER TABLE {table} add COLUMN updated_date datetime(3) DEFAULT NULL', Dialect.MYSQL) + b.execute(f'ALTER TABLE {table} add COLUMN updated_date TIMESTAMPTZ DEFAULT NULL', Dialect.POSTGRESQL)
