diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-28 21:44:46 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-28 21:44:46 +0000 |
commit | 103832d9c136727b08b3dc1ab0ca8a5df2765fba (patch) | |
tree | 3a4cf3be7d4988e402aefceae0e70a86f1ce7cb4 /extras | |
parent | 486ac00566bf842784f3edf5355ef71e0591ff2d (diff) |
Schema for PostGre.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6145 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'extras')
-rw-r--r-- | extras/m_sqllog.pgschema.sql | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/extras/m_sqllog.pgschema.sql b/extras/m_sqllog.pgschema.sql new file mode 100644 index 000000000..7aeb9fa4a --- /dev/null +++ b/extras/m_sqllog.pgschema.sql @@ -0,0 +1,39 @@ +CREATE TABLE ircd_log ( + id serial NOT NULL, + category_id bigint, + nick bigint, + host bigint, + source bigint, + dtime bigint DEFAULT 0 NOT NULL +); +ALTER TABLE ONLY ircd_log + ADD CONSTRAINT ircd_log_pkey PRIMARY KEY (id); + + + +CREATE TABLE ircd_log_actors ( + id serial NOT NULL, + actor text +); +ALTER TABLE ONLY ircd_log_actors + ADD CONSTRAINT ircd_log_actors_pkey PRIMARY KEY (id); + + + +CREATE TABLE ircd_log_categories ( + category_id serial NOT NULL, + category text NOT NULL +); + +INSERT INTO ircd_log_categories VALUES (1, 'Oper'); +INSERT INTO ircd_log_categories VALUES (2, 'Kill'); +INSERT INTO ircd_log_categories VALUES (3, 'Server Link'); +INSERT INTO ircd_log_categories VALUES (4, 'G/Z/K/E Line'); +INSERT INTO ircd_log_categories VALUES (5, 'Connect'); +INSERT INTO ircd_log_categories VALUES (6, 'Disconnect'); +INSERT INTO ircd_log_categories VALUES (7, 'Flooding'); +INSERT INTO ircd_log_categories VALUES (8, 'Load Module'); + +ALTER TABLE ONLY ircd_log_categories + ADD CONSTRAINT ircd_log_categories_pkey PRIMARY KEY (category_id); + |