diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/m_sqloper.mssql.sql | 8 | ||||
-rw-r--r-- | extras/m_sqloper.mysql.sql | 30 | ||||
-rw-r--r-- | extras/m_sqloper.postgresql.sql | 19 | ||||
-rw-r--r-- | extras/m_sqloper.sqlite3.sql | 13 |
4 files changed, 26 insertions, 44 deletions
diff --git a/extras/m_sqloper.mssql.sql b/extras/m_sqloper.mssql.sql deleted file mode 100644 index 5056e12e9..000000000 --- a/extras/m_sqloper.mssql.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE [dbo].[ircd_opers] (
- [id] int IDENTITY(1, 1) NOT NULL,
- [username] varchar(255) NULL,
- [password] varchar(255) NULL,
- [hostname] varchar(255) NULL,
- [type] varchar(255) NULL,
- PRIMARY KEY CLUSTERED ([id])
-)
diff --git a/extras/m_sqloper.mysql.sql b/extras/m_sqloper.mysql.sql index 293a2aa70..a8a2b7e1d 100644 --- a/extras/m_sqloper.mysql.sql +++ b/extras/m_sqloper.mysql.sql @@ -1,24 +1,12 @@ --- 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, + 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) -) TYPE=MyISAM; - --- --- Dumping data for table `ircd_opers` --- - - +) ENGINE=MyISAM; diff --git a/extras/m_sqloper.postgresql.sql b/extras/m_sqloper.postgresql.sql index fd640949f..0b3cdb8dc 100644 --- a/extras/m_sqloper.postgresql.sql +++ b/extras/m_sqloper.postgresql.sql @@ -1,14 +1,13 @@ --- --- PostgreSQL database dump --- - CREATE TABLE ircd_opers ( - id serial NOT NULL, - username text, - "password" text, - hostname text, - "type" text + "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 index 1bb2937b8..6aec5a118 100644 --- a/extras/m_sqloper.sqlite3.sql +++ b/extras/m_sqloper.sqlite3.sql @@ -1,7 +1,10 @@ CREATE TABLE ircd_opers ( id integer primary key, -username text, -password text, -hostname text, -type text); - +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); |