SQLite compatibility for Echo database patches

These patches allow Echo update to stay compatible with SQLite.

Change-Id: Ie4d0b4ec40bcc504096e87f469be0e96271daec1
This commit is contained in:
Dereckson 2013-10-02 00:56:56 +02:00
parent 2ba05992be
commit 85181d3aa1
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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);