Fix some minor issues with the sqloper schemas.

- Only create the pgsql table if it doesn't exist.
- Separate the active column out from others.
This commit is contained in:
Sadie Powell 2024-07-01 18:28:18 +01:00
parent 4718cec54a
commit f166ef0a70
3 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
CREATE TABLE IF NOT EXISTS `ircd_opers` ( CREATE TABLE IF NOT EXISTS `ircd_opers` (
`active` bool NOT NULL DEFAULT true, `active` bool NOT NULL DEFAULT true,
`name` text NOT NULL, `name` text NOT NULL,
`password` text NOT NULL, `password` text NOT NULL,
`host` text NOT NULL, `host` text NOT NULL,

View File

@ -4,8 +4,9 @@ CREATE TYPE "autologin" AS ENUM (
'never' 'never'
); );
CREATE TABLE "ircd_opers" ( CREATE TABLE IF NOT EXISTS "ircd_opers" (
"active" bool NOT NULL DEFAULT true, "active" bool NOT NULL DEFAULT true,
"name" text NOT NULL, "name" text NOT NULL,
"password" text NOT NULL, "password" text NOT NULL,
"host" text NOT NULL, "host" text NOT NULL,

View File

@ -1,5 +1,6 @@
CREATE TABLE IF NOT EXISTS "ircd_opers" ( CREATE TABLE IF NOT EXISTS "ircd_opers" (
"active" bool NOT NULL DEFAULT true, "active" bool NOT NULL DEFAULT true,
"name" text NOT NULL, "name" text NOT NULL,
"password" text NOT NULL, "password" text NOT NULL,
"host" text NOT NULL, "host" text NOT NULL,