Add baseurl field to sites table in the search system
authorMagnus Hagander <magnus@hagander.net>
Sat, 23 Oct 2021 14:02:41 +0000 (16:02 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 23 Oct 2021 14:03:50 +0000 (16:03 +0200)
This table isn't used beyond a single row at this time, so there is a
lot to be done for simplifying things around it, but for a quick-fix
just add the field that actually should be there.

Spotted by CĂ©lestin Matte

tools/search/sql/schema.sql

index ad8fca33489aff3d19e3b969cc1d48b64168e386..dd63311fc65b3bdf4411edd831ec6318ec65d20d 100644 (file)
@@ -23,6 +23,7 @@ ALTER TABLE messages ADD CONSTRAINT pk_messages PRIMARY KEY (list,year,month,msg
 CREATE TABLE sites (
    id int NOT NULL PRIMARY KEY,
    hostname text NOT NULL UNIQUE,
+   baseurl text NOT NULL,
    description text NOT NULL,
    https boolean NOT NULL DEFAULT 'f',
    pagecount int NOT NULL