changed the article types import script to have names that can be used from
[mir.git] / dbscripts / help_arttype.sql
index a58ed98..02fd99d 100755 (executable)
@@ -1,10 +1,10 @@
 UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" !~ '^pg_';
 -- \connect - postgres
-INSERT INTO "article_type" VALUES (0,'OpenPosting');
-INSERT INTO "article_type" VALUES (1,'Newswire');
-INSERT INTO "article_type" VALUES (2,'Feature');
-INSERT INTO "article_type" VALUES (3,'Spezial (Topicpage)');
-INSERT INTO "article_type" VALUES (4,'Spezial (Startpage)');
+INSERT INTO "article_type" VALUES (0,'openposting');
+INSERT INTO "article_type" VALUES (1,'newswire');
+INSERT INTO "article_type" VALUES (2,'feature');
+INSERT INTO "article_type" VALUES (3,'topicspecial');
+INSERT INTO "article_type" VALUES (4,'startspecial');
 BEGIN TRANSACTION;
 CREATE TEMP TABLE "tr" ("tmp_relname" name, "tmp_reltriggers" smallint);
 INSERT INTO "tr" SELECT C."relname", count(T."oid") FROM "pg_class" C, "pg_trigger" T WHERE C."oid" = T."tgrelid" AND C."relname" !~ '^pg_' GROUP BY 1;