importers works
removed references to Origin
all the unit tests pass
all tests pass
Migration completed.

Added indeces to qa.db

Script used to convert the data:

select load_extension('libspatialite.dylib');

CREATE TABLE tmp1 (
	id INTEGER NOT NULL,
	created_at DATETIME,
	event_source VARCHAR(255) NOT NULL,
	event_key VARCHAR NOT NULL,
	event_name VARCHAR,
	agency VARCHAR NOT NULL,
	origin_key VARCHAR NOT NULL,
	time DATETIME NOT NULL,
	time_error FLOAT,
	time_rms FLOAT,
	semi_minor_90error FLOAT,
	semi_major_90error FLOAT,
	depth FLOAT,
	depth_error FLOAT,
	azimuth_error FLOAT,
	scale VARCHAR,
	value FLOAT,
	standard_error FLOAT,
	PRIMARY KEY (id)
);

SELECT AddGeometryColumn('tmp1', 'position', 4326, 'POINT', 2);

INSERT INTO tmp1(id, created_at, scale, value, standard_error, event_source, event_key, event_name, agency, origin_key, time, time_error, time_rms, semi_major_90error, semi_minor_90error, position, depth, depth_error, azimuth_error) SELECT
m.id, m.created_at,  m.scale, m.value, m.standard_error,
es.name,
e.source_key, e.name,
a.source_key,
o.source_key, o.time, o.time_error, o.time_rms, o.semi_major_90error, o.semi_minor_90error, o.position, o.depth, o.depth_error, NULL
FROM catalogue_magnitudemeasure AS m, catalogue_eventsource AS es, catalogue_agency AS a, catalogue_event AS e, catalogue_origin AS o
WHERE m.origin_id = o.id AND m.agency_id = a.id AND m.event_id = e.id;

drop table catalogue_eventsource;
drop table catalogue_event;
drop table catalogue_agency;
drop table catalogue_origin;
drop table catalogue_magnitudemeasure;
drop table catalogue_measuremetadata;

alter table tmp1 rename to catalogue_magnitudemeasure;
use insert or replace. added unique constraint
Merge branch 'master' of https://github.com/gem/oq-eqcatalogue-tool into denormalize
removed active wait for db connection
changed commit frequency to 1/250k
Merge pull request #34 from matley/denormalize

Use only one table to store measure data