ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
- disabled INT DEFAULT NULL,
+ disabled INT DEFAULT 0,
primary key(id)
) Engine=InnoDB;
ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
- disabled INT DEFAULT NULL,
+ disabled INT DEFAULT 0,
ordername VARCHAR(255) DEFAULT NULL,
auth INT DEFAULT NULL,
primary key (id)
ttl INT DEFAULT NULL,
prio INT DEFAULT NULL,
change_date INT DEFAULT NULL,
- disabled BOOL DEFAULT NULL,
+ disabled BOOL DEFAULT 'f',
CONSTRAINT domain_exists
FOREIGN KEY(domain_id) REFERENCES domains(id)
ON DELETE CASCADE,
ttl INTEGER DEFAULT NULL,
prio INTEGER DEFAULT NULL,
change_date INTEGER DEFAULT NULL,
- disabled BOOLEAN DEFAULT NULL
+ disabled BOOLEAN DEFAULT 0
);
CREATE INDEX rec_name_index ON records(name);
An GSQL Backend schema change is necessary for new features.
For MySQL:
<screen>
-ALTER TABLE records ADD disabled BOOLEAN;
-UPDATE records SET disabled=0;
+ALTER TABLE records ADD disabled BOOLEAN DEFAULT 0;
</screen>
For PostgreSQL:
<screen>
-ALTER TABLE records ADD disabled BOOLEAN;
-UPDATE records SET disabled=false;
+ALTER TABLE records ADD disabled BOOLEAN DEFAULT 'f';
</screen>
For SQLite 3:
<screen>
-ALTER TABLE records ADD disabled BOOLEAN;
-UPDATE records SET disabled=0;
+ALTER TABLE records ADD disabled BOOLEAN DEFAULT 0;
</screen>
For Oracle:
<screen>
-ALTER TABLE records ADD disabled INT;
-UPDATE records SET disabled=0;
+ALTER TABLE records ADD disabled INT DEFAULT 0;
</screen>
</para>
</sect1>