]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Move the SQL tables to docs/sql and install them on `make install`.
authorPeter Powell <petpow@saberuk.com>
Wed, 26 Sep 2018 20:56:51 +0000 (21:56 +0100)
committerPeter Powell <petpow@saberuk.com>
Wed, 26 Sep 2018 22:36:19 +0000 (23:36 +0100)
docs/sql/sqloper.mysql.sql [new file with mode: 0644]
docs/sql/sqloper.pgsql.sql [new file with mode: 0644]
docs/sql/sqloper.sqlite3.sql [new file with mode: 0644]
extras/m_sqloper.mysql.sql [deleted file]
extras/m_sqloper.postgresql.sql [deleted file]
extras/m_sqloper.sqlite3.sql [deleted file]
make/template/main.mk

diff --git a/docs/sql/sqloper.mysql.sql b/docs/sql/sqloper.mysql.sql
new file mode 100644 (file)
index 0000000..a8a2b7e
--- /dev/null
@@ -0,0 +1,12 @@
+CREATE TABLE ircd_opers (
+  id bigint(20) NOT NULL auto_increment,
+  name text NOT NULL,
+  password text NOT NULL,
+  hash text,
+  host text NOT NULL,
+  type text NOT NULL,
+  fingerprint text,
+  autologin tinyint(1) NOT NULL DEFAULT 0,
+  active tinyint(1) NOT NULL DEFAULT 1,
+  PRIMARY KEY  (id)
+) ENGINE=MyISAM;
diff --git a/docs/sql/sqloper.pgsql.sql b/docs/sql/sqloper.pgsql.sql
new file mode 100644 (file)
index 0000000..0b3cdb8
--- /dev/null
@@ -0,0 +1,13 @@
+CREATE TABLE ircd_opers (
+    "id" serial NOT NULL,
+    "name" text NOT NULL,
+    "password" text NOT NULL,
+    "hash" text,
+    "host" text NOT NULL,
+    "type" text NOT NULL,
+    "fingerprint" text,
+    "autologin" boolean NOT NULL DEFAULT 0,
+    "active" boolean NOT NULL DEFAULT 1
+);
+ALTER TABLE ONLY ircd_opers
+    ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
diff --git a/docs/sql/sqloper.sqlite3.sql b/docs/sql/sqloper.sqlite3.sql
new file mode 100644 (file)
index 0000000..6aec5a1
--- /dev/null
@@ -0,0 +1,10 @@
+CREATE TABLE ircd_opers (
+id integer primary key,
+name text NOT NULL,
+password text NOT NULL,
+hash text,
+host text NOT NULL,
+type text NOT NULL,
+fingerprint text,
+autologin integer NOT NULL DEFAULT 0,
+active integer NOT NULL DEFAULT 1);
diff --git a/extras/m_sqloper.mysql.sql b/extras/m_sqloper.mysql.sql
deleted file mode 100644 (file)
index a8a2b7e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-CREATE TABLE ircd_opers (
-  id bigint(20) NOT NULL auto_increment,
-  name text NOT NULL,
-  password text NOT NULL,
-  hash text,
-  host text NOT NULL,
-  type text NOT NULL,
-  fingerprint text,
-  autologin tinyint(1) NOT NULL DEFAULT 0,
-  active tinyint(1) NOT NULL DEFAULT 1,
-  PRIMARY KEY  (id)
-) ENGINE=MyISAM;
diff --git a/extras/m_sqloper.postgresql.sql b/extras/m_sqloper.postgresql.sql
deleted file mode 100644 (file)
index 0b3cdb8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE TABLE ircd_opers (
-    "id" serial NOT NULL,
-    "name" text NOT NULL,
-    "password" text NOT NULL,
-    "hash" text,
-    "host" text NOT NULL,
-    "type" text NOT NULL,
-    "fingerprint" text,
-    "autologin" boolean NOT NULL DEFAULT 0,
-    "active" boolean NOT NULL DEFAULT 1
-);
-ALTER TABLE ONLY ircd_opers
-    ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
diff --git a/extras/m_sqloper.sqlite3.sql b/extras/m_sqloper.sqlite3.sql
deleted file mode 100644 (file)
index 6aec5a1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-CREATE TABLE ircd_opers (
-id integer primary key,
-name text NOT NULL,
-password text NOT NULL,
-hash text,
-host text NOT NULL,
-type text NOT NULL,
-fingerprint text,
-autologin integer NOT NULL DEFAULT 0,
-active integer NOT NULL DEFAULT 1);
index 071e5da734e53652e5b632a1e3050ef2e70b4c62..a67c14f732c7dc25334cfb7eeccd9cf6f780d7ce 100644 (file)
@@ -214,6 +214,7 @@ install: target
        @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(LOGPATH)
        @-$(INSTALL) -d -m $(INSTMODE_DIR) $(BINPATH)
        @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/services
+       @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/sql
        @-$(INSTALL) -d -m $(INSTMODE_DIR) $(MANPATH)
        @-$(INSTALL) -d -m $(INSTMODE_DIR) $(MODPATH)
        @-$(INSTALL) -d -m $(INSTMODE_DIR) $(SCRPATH)
@@ -232,6 +233,7 @@ endif
        -$(INSTALL) -m $(INSTMODE_BIN) tools/genssl $(BINPATH)/inspircd-genssl 2>/dev/null
        -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/*.example $(CONPATH)/examples
        -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/services/*.example $(CONPATH)/examples/services
+       -$(INSTALL) -m $(INSTMODE_LIB) docs/sql/*.sql $(CONPATH)/examples/sql
        -$(INSTALL) -m $(INSTMODE_LIB) *.pem $(CONPATH) 2>/dev/null
        @echo ""
        @echo "*************************************"