]> granicus.if.org Git - pdns/commitdiff
make sqlite3 schema case insensitive, thanks to Peter van Dijk for telling us how
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 6 Jan 2011 14:41:29 +0000 (14:41 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 6 Jan 2011 14:41:29 +0000 (14:41 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1815 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnssec.schema.sqlite3.sql
pdns/docs/pdns.sgml

index 2ec99ea73652e6d21bdde39efd97f71e51be5347..3a4b1fd8abf084f0a1567d1c14537cca0cec1089 100644 (file)
@@ -5,7 +5,7 @@ create index orderindex on records(ordername);
 create table domainmetadata (
  id             INTEGER PRIMARY KEY,
  domain_id       INT NOT NULL,
- kind           VARCHAR(15),
+ kind           VARCHAR(15) COLLATE NOCASE,
  content       TEXT
 );
 
index 21fd53fc8d0d27e7be80d39a6137214f061eb3b5..0e28560d141cff413c3bd47c127986e95c2887cd 100644 (file)
@@ -13390,7 +13390,7 @@ insert into Records (id,ZoneId, name,type,content,TimeToLive,Priority) select RE
                <programlisting>
             create table domains (
               id                INTEGER PRIMARY KEY,
-              name              VARCHAR(255) NOT NULL,
+              name              VARCHAR(255) NOT NULL COLLATE NOCASE,
               master            VARCHAR(128) DEFAULT NULL,
               last_check        INTEGER DEFAULT NULL,
               type              VARCHAR(6) NOT NULL,
@@ -13403,7 +13403,7 @@ insert into Records (id,ZoneId, name,type,content,TimeToLive,Priority) select RE
             CREATE TABLE records (
               id              INTEGER PRIMARY KEY,
               domain_id       INTEGER DEFAULT NULL,
-              name            VARCHAR(255) DEFAULT NULL,
+              name            VARCHAR(255) DEFAULT NULL, 
               type            VARCHAR(6) DEFAULT NULL,
               content         VARCHAR(255) DEFAULT NULL,
               ttl             INTEGER DEFAULT NULL,
@@ -13417,7 +13417,7 @@ insert into Records (id,ZoneId, name,type,content,TimeToLive,Priority) select RE
 
             create table supermasters (
               ip          VARCHAR(25) NOT NULL, 
-              nameserver  VARCHAR(255) NOT NULL, 
+              nameserver  VARCHAR(255) NOT NULL COLLATE NOCASE
               account     VARCHAR(40) DEFAULT NULL
             );
                </programlisting>