create_tables.pgsql
changeset 63 9b627307f4a8
parent 42 9d10877e1c10
child 67 e4d25f50164d
--- a/create_tables.pgsql	Sun Aug 24 04:57:11 2008 +0000
+++ b/create_tables.pgsql	Sun Aug 24 18:23:59 2008 +0000
@@ -192,5 +192,8 @@
 $$ LANGUAGE plpgsql STABLE;
 
 
-CREATE TRIGGER primary_count BEFORE INSERT OR UPDATE ON domain_name
+CREATE TRIGGER primary_count_ins BEFORE INSERT ON domain_name
     FOR EACH ROW EXECUTE PROCEDURE domain_primary_trigger();
+
+CREATE TRIGGER primary_count_upd AFTER UPDATE ON domain_name
+    FOR EACH ROW EXECUTE PROCEDURE domain_primary_trigger();