From 85181d3aa14613e233feb267b1f8741d32593679 Mon Sep 17 00:00:00 2001 From: Dereckson Date: Wed, 2 Oct 2013 00:56:56 +0200 Subject: [PATCH] SQLite compatibility for Echo database patches These patches allow Echo update to stay compatible with SQLite. Change-Id: Ie4d0b4ec40bcc504096e87f469be0e96271daec1 --- db_patches/patch-email_batch-new-field.sql | 2 +- db_patches/patch-notification-bundling-field.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db_patches/patch-email_batch-new-field.sql b/db_patches/patch-email_batch-new-field.sql index f58e33af0..f25f913bc 100644 --- a/db_patches/patch-email_batch-new-field.sql +++ b/db_patches/patch-email_batch-new-field.sql @@ -1,4 +1,4 @@ -ALTER TABLE /*_*/echo_email_batch ADD COLUMN eeb_event_hash varchar(32) binary not null; +ALTER TABLE /*_*/echo_email_batch ADD COLUMN eeb_event_hash varchar(32) binary not null default ''; DROP INDEX /*i*/echo_email_batch_user_priority_event ON /*_*/echo_email_batch; diff --git a/db_patches/patch-notification-bundling-field.sql b/db_patches/patch-notification-bundling-field.sql index 040402265..f6d5938ef 100644 --- a/db_patches/patch-notification-bundling-field.sql +++ b/db_patches/patch-notification-bundling-field.sql @@ -1,6 +1,6 @@ ALTER TABLE /*_*/echo_notification ADD COLUMN notification_bundle_base boolean not null default 1; -ALTER TABLE /*_*/echo_notification ADD COLUMN notification_bundle_hash varchar(32) binary not null; -ALTER TABLE /*_*/echo_notification ADD COLUMN notification_bundle_display_hash varchar(32) binary not null; +ALTER TABLE /*_*/echo_notification ADD COLUMN notification_bundle_hash varchar(32) binary not null default ''; +ALTER TABLE /*_*/echo_notification ADD COLUMN notification_bundle_display_hash varchar(32) binary not null default ''; CREATE INDEX /*i*/echo_notification_user_base_read_timestamp ON /*_*/echo_notification (notification_user, notification_bundle_base, notification_read_timestamp); CREATE INDEX /*i*/echo_notification_user_base_timestamp ON /*_*/echo_notification (notification_user, notification_bundle_base, notification_timestamp, notification_event);