From 5580c7714ad5a2975d16e82c78129428a1c50323 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Mon, 11 Mar 2019 14:21:53 +0100 Subject: [PATCH] Update column names in SQLite patch file According to the current schema. Change-Id: Ie044a4217db7ef52c6e3a2cec001f6b44b198bd7 --- db_patches/patch-event_variant_nullability.sqlite.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/db_patches/patch-event_variant_nullability.sqlite.sql b/db_patches/patch-event_variant_nullability.sqlite.sql index 92ae89ff4..f5988f960 100644 --- a/db_patches/patch-event_variant_nullability.sqlite.sql +++ b/db_patches/patch-event_variant_nullability.sqlite.sql @@ -12,15 +12,16 @@ CREATE TABLE /*_*/echo_event ( event_variant varchar(64) binary null, event_agent_id int unsigned null, -- The user who triggered it, if any event_agent_ip varchar(39) binary null, -- IP address who triggered it, if any - event_page_title varchar(255) binary null, - event_extra BLOB NULL + event_extra BLOB NULL, + event_page_id int unsigned null, + event_deleted tinyint unsigned not null default 0 ) /*$wgDBTableOptions*/; -- Copy over all the old data into the new table INSERT INTO /*_*/echo_event - (event_id, event_type, event_variant, event_agent_id, event_agent_ip, event_page_title, event_extra) + (event_id, event_type, event_variant, event_agent_id, event_agent_ip, event_extra, event_page_id, event_deleted) SELECT - event_id, event_type, event_variant, event_agent_id, event_agent_ip, event_page_title, event_extra + event_id, event_type, event_variant, event_agent_id, event_agent_ip, event_extra, event_page_id, event_deleted FROM /*_*/temp_echo_event_variant_nullability;