--- sql/mt.sql	2008/10/25 16:39:22	37
+++ sql/mt.sql	2008/11/03 15:33:52	50
@@ -2,7 +2,7 @@
 -- Movable Type
 
 select
-	entry_atom_id as id,
+	coalesce(entry_atom_id,entry_basename) as id,
 	'http://blog.rot13.org/' || date_part('year', entry_authored_on) || '/' || lpad(date_part('month', entry_authored_on)::text,2,'0') || '/' || entry_basename || '.html' as uri,
 	entry_title as label,
 	entry_authored_on as date,
