From 07f2f3c30a6e0bc811e436925dfdfcf5befdecb7 Mon Sep 17 00:00:00 2001
From: "David A. Madore" <david+git@madore.org>
Date: Sat, 12 Nov 2011 14:33:35 +0100
Subject: Entry single pages: handle permalinks gracefully, populate with
 attribute.

* A single page is generated from the single-page attribute on <entry>
  element (stored in database as do_single_page).

* Permalink refers to the single page.  Same from weblog index.  Other
  links are subject to debate (e.g., what about internal links? now we
  link to single page when link has a supplement part, but this is
  debatable).
---
 org/madore/damlengine/weblog-database.sql | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'org/madore/damlengine/weblog-database.sql')

diff --git a/org/madore/damlengine/weblog-database.sql b/org/madore/damlengine/weblog-database.sql
index ab4146d..0cfd282 100644
--- a/org/madore/damlengine/weblog-database.sql
+++ b/org/madore/damlengine/weblog-database.sql
@@ -7,8 +7,9 @@ CREATE TABLE entries (
 	lang text ,
 	title text ,
 	title_xml xml ,
-	content xml NOT NULL,
-	sha1 text NOT NULL
+	content xml NOT NULL ,
+	sha1 text NOT NULL ,
+	do_single_page text
 ) ;
 CREATE INDEX entries_edate_key ON entries ( edate ) ;
 CREATE TABLE incat (
-- 
cgit v1.2.3

