projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b0cb45
)
Add baseurl field to sites table in the search system
author
Magnus Hagander
<magnus@hagander.net>
Sat, 23 Oct 2021 14:02:41 +0000
(16:02 +0200)
committer
Magnus 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
patch
|
blob
|
blame
|
history
diff --git
a/tools/search/sql/schema.sql
b/tools/search/sql/schema.sql
index ad8fca33489aff3d19e3b969cc1d48b64168e386..dd63311fc65b3bdf4411edd831ec6318ec65d20d 100644
(file)
--- a/
tools/search/sql/schema.sql
+++ b/
tools/search/sql/schema.sql
@@
-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