From 6b23783b71e98bae6aced7144c6730f028873cb6 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 15 Jan 2007 00:45:23 +0000 Subject: Rename all these so that the names reflect the database server theyre used with more accurately -- for example, the old mysql ones were just .schema.sql, and the postgres ones were .pgschema.sql. Theyre now .mysql.sql, .postgresql.sql and .sqlite3.sql git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6345 e03df62e-2008-0410-955e-edbf42e46eb7 --- extras/m_sqllog.mysql.sql | 78 +++++++++++++++++++++++++++++++++++++++++ extras/m_sqllog.pgschema.sql | 51 --------------------------- extras/m_sqllog.postgresql.sql | 51 +++++++++++++++++++++++++++ extras/m_sqllog.schema.sql | 78 ----------------------------------------- extras/m_sqloper.mysql.sql | 24 +++++++++++++ extras/m_sqloper.pgschema.sql | 14 -------- extras/m_sqloper.postgresql.sql | 14 ++++++++ extras/m_sqloper.schema.sql | 24 ------------- 8 files changed, 167 insertions(+), 167 deletions(-) create mode 100644 extras/m_sqllog.mysql.sql delete mode 100644 extras/m_sqllog.pgschema.sql create mode 100644 extras/m_sqllog.postgresql.sql delete mode 100644 extras/m_sqllog.schema.sql create mode 100644 extras/m_sqloper.mysql.sql delete mode 100644 extras/m_sqloper.pgschema.sql create mode 100644 extras/m_sqloper.postgresql.sql delete mode 100644 extras/m_sqloper.schema.sql diff --git a/extras/m_sqllog.mysql.sql b/extras/m_sqllog.mysql.sql new file mode 100644 index 000000000..0793b0543 --- /dev/null +++ b/extras/m_sqllog.mysql.sql @@ -0,0 +1,78 @@ +-- MySQL dump 9.11 +-- +-- Host: localhost Database: brain +-- ------------------------------------------------------ +-- Server version 4.0.20 + +-- +-- Table structure for table `ircd_log` +-- + +CREATE TABLE ircd_log ( + id bigint(20) NOT NULL auto_increment, + category_id bigint(20) NOT NULL default '0', + nick bigint(20) default NULL, + host bigint(20) default NULL, + source bigint(20) default NULL, + dtime bigint(20) NOT NULL default '0', + PRIMARY KEY (id) +) TYPE=MyISAM; + +-- +-- Dumping data for table `ircd_log` +-- + + +-- +-- Table structure for table `ircd_log_categories` +-- + +CREATE TABLE ircd_log_categories ( + category_id bigint(20) NOT NULL default '0', + category text NOT NULL, + PRIMARY KEY (category_id) +) TYPE=MyISAM; + +-- +-- Dumping data for table `ircd_log_categories` +-- + +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'); + +-- +-- Table structure for table `ircd_log_actors` +-- + +CREATE TABLE ircd_log_actors ( + id bigint(20) NOT NULL auto_increment, + actor text, + PRIMARY KEY (id) +) TYPE=MyISAM; + +-- +-- Dumping data for table `ircd_log_actors` +-- + + +-- +-- Table structure for table `ircd_log_hosts` +-- + +CREATE TABLE ircd_log_hosts ( + id bigint(20) NOT NULL auto_increment, + hostname text, + PRIMARY KEY (id) +) TYPE=MyISAM; + +-- +-- Dumping data for table `ircd_log_hosts` +-- + + diff --git a/extras/m_sqllog.pgschema.sql b/extras/m_sqllog.pgschema.sql deleted file mode 100644 index 2e40dd90d..000000000 --- a/extras/m_sqllog.pgschema.sql +++ /dev/null @@ -1,51 +0,0 @@ --- --- PostgreSQL database dump --- - -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); - - - -CREATE TABLE ircd_log_hosts ( - id serial NOT NULL, - hostname text -); -ALTER TABLE ONLY ircd_log_hosts - ADD CONSTRAINT ircd_log_hosts_pkey PRIMARY KEY (id); diff --git a/extras/m_sqllog.postgresql.sql b/extras/m_sqllog.postgresql.sql new file mode 100644 index 000000000..2e40dd90d --- /dev/null +++ b/extras/m_sqllog.postgresql.sql @@ -0,0 +1,51 @@ +-- +-- PostgreSQL database dump +-- + +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); + + + +CREATE TABLE ircd_log_hosts ( + id serial NOT NULL, + hostname text +); +ALTER TABLE ONLY ircd_log_hosts + ADD CONSTRAINT ircd_log_hosts_pkey PRIMARY KEY (id); diff --git a/extras/m_sqllog.schema.sql b/extras/m_sqllog.schema.sql deleted file mode 100644 index 0793b0543..000000000 --- a/extras/m_sqllog.schema.sql +++ /dev/null @@ -1,78 +0,0 @@ --- MySQL dump 9.11 --- --- Host: localhost Database: brain --- ------------------------------------------------------ --- Server version 4.0.20 - --- --- Table structure for table `ircd_log` --- - -CREATE TABLE ircd_log ( - id bigint(20) NOT NULL auto_increment, - category_id bigint(20) NOT NULL default '0', - nick bigint(20) default NULL, - host bigint(20) default NULL, - source bigint(20) default NULL, - dtime bigint(20) NOT NULL default '0', - PRIMARY KEY (id) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_log` --- - - --- --- Table structure for table `ircd_log_categories` --- - -CREATE TABLE ircd_log_categories ( - category_id bigint(20) NOT NULL default '0', - category text NOT NULL, - PRIMARY KEY (category_id) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_log_categories` --- - -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'); - --- --- Table structure for table `ircd_log_actors` --- - -CREATE TABLE ircd_log_actors ( - id bigint(20) NOT NULL auto_increment, - actor text, - PRIMARY KEY (id) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_log_actors` --- - - --- --- Table structure for table `ircd_log_hosts` --- - -CREATE TABLE ircd_log_hosts ( - id bigint(20) NOT NULL auto_increment, - hostname text, - PRIMARY KEY (id) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_log_hosts` --- - - diff --git a/extras/m_sqloper.mysql.sql b/extras/m_sqloper.mysql.sql new file mode 100644 index 000000000..293a2aa70 --- /dev/null +++ b/extras/m_sqloper.mysql.sql @@ -0,0 +1,24 @@ +-- MySQL dump 9.11 +-- +-- Host: localhost Database: brain +-- ------------------------------------------------------ +-- Server version 4.0.20 + +-- +-- Table structure for table `ircd_opers` +-- + +CREATE TABLE ircd_opers ( + id bigint(20) NOT NULL auto_increment, + username text, + password text, + hostname text, + type text, + PRIMARY KEY (id) +) TYPE=MyISAM; + +-- +-- Dumping data for table `ircd_opers` +-- + + diff --git a/extras/m_sqloper.pgschema.sql b/extras/m_sqloper.pgschema.sql deleted file mode 100644 index fd640949f..000000000 --- a/extras/m_sqloper.pgschema.sql +++ /dev/null @@ -1,14 +0,0 @@ --- --- PostgreSQL database dump --- - -CREATE TABLE ircd_opers ( - id serial NOT NULL, - username text, - "password" text, - hostname text, - "type" text -); -ALTER TABLE ONLY ircd_opers - ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id); - diff --git a/extras/m_sqloper.postgresql.sql b/extras/m_sqloper.postgresql.sql new file mode 100644 index 000000000..fd640949f --- /dev/null +++ b/extras/m_sqloper.postgresql.sql @@ -0,0 +1,14 @@ +-- +-- PostgreSQL database dump +-- + +CREATE TABLE ircd_opers ( + id serial NOT NULL, + username text, + "password" text, + hostname text, + "type" text +); +ALTER TABLE ONLY ircd_opers + ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id); + diff --git a/extras/m_sqloper.schema.sql b/extras/m_sqloper.schema.sql deleted file mode 100644 index 293a2aa70..000000000 --- a/extras/m_sqloper.schema.sql +++ /dev/null @@ -1,24 +0,0 @@ --- MySQL dump 9.11 --- --- Host: localhost Database: brain --- ------------------------------------------------------ --- Server version 4.0.20 - --- --- Table structure for table `ircd_opers` --- - -CREATE TABLE ircd_opers ( - id bigint(20) NOT NULL auto_increment, - username text, - password text, - hostname text, - type text, - PRIMARY KEY (id) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_opers` --- - - -- cgit v1.2.3