diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/m_sqloper.mysql.sql | 11 | ||||
-rw-r--r-- | extras/m_sqloper.postgresql.sql | 15 | ||||
-rw-r--r-- | extras/m_sqloper.sqlite3.sql | 11 |
3 files changed, 23 insertions, 14 deletions
diff --git a/extras/m_sqloper.mysql.sql b/extras/m_sqloper.mysql.sql index f43495806..a8a2b7e1d 100644 --- a/extras/m_sqloper.mysql.sql +++ b/extras/m_sqloper.mysql.sql @@ -1,9 +1,12 @@ 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) ) ENGINE=MyISAM; diff --git a/extras/m_sqloper.postgresql.sql b/extras/m_sqloper.postgresql.sql index 4244abc22..0b3cdb8dc 100644 --- a/extras/m_sqloper.postgresql.sql +++ b/extras/m_sqloper.postgresql.sql @@ -1,10 +1,13 @@ CREATE TABLE ircd_opers ( - id serial NOT NULL, - username text, - "password" text, - hostname text, - "type" text, - active boolean NOT NULL DEFAULT 1 + "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 1c607e664..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); |