[integration tests] Refactoring upsert(): opt_updateUserIndex deleted, affectedRows -> isInsert

This commit is contained in:
Georgii Petrov
2023-09-07 15:00:16 +03:00
parent 84c3f26993
commit d303205723
15 changed files with 66 additions and 125 deletions

View File

@ -8,7 +8,7 @@ CREATE TABLE doc_changes(
user_id_original NVARCHAR(255) NOT NULL,
user_name NVARCHAR(255) NOT NULL,
change_data NVARCHAR(MAX) NOT NULL,
change_date DATETIME NOT NULL,
change_date DATETIME2(6) NOT NULL,
UNIQUE (tenant, id, change_id)
);
@ -17,8 +17,8 @@ CREATE TABLE task_result (
id NVARCHAR(255) NOT NULL,
status SMALLINT NOT NULL,
status_info INT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_open_date DATETIME NOT NULL,
created_at DATETIME2(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_open_date DATETIME2(6) NOT NULL,
user_index DECIMAL DEFAULT 1 NOT NULL,
change_id DECIMAL DEFAULT 0 NOT NULL,
callback NVARCHAR(MAX) NOT NULL,