Browse Source

Create a blank Berkeley DB (and ensure we've got it installed!)

yumi 4 months ago
parent
commit
120325cf5c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      bin/install.php

+ 3
- 1
bin/install.php View File

@@ -57,7 +57,7 @@ $queries[] = <<<SQL
57 57
 	`LearnedAsSpam` bit(1) DEFAULT NULL,
58 58
 	`IsSpam` bit(1) NOT NULL DEFAULT b'0',
59 59
 	`Visible` bit(1) GENERATED ALWAYS AS
60
-		(`IsSpam` = 0 and `Deleted` = 0) VIRTUAL
60
+		(`IsSpam` = 0 and `Deleted` = 0) VIRTUAL,
61 61
 	PRIMARY KEY (`Continuity`,`Year`,`Topic`,`Id`)
62 62
 	) ENGINE=InnoDB DEFAULT CHARSET=utf8
63 63
 SQL;
@@ -148,6 +148,8 @@ CMD;
148 148
 CMD;
149 149
 	system($cmd);
150 150
 }
151
+dba_close(dba_open(CONFIG_SPAM_DB, "c"));
152
+
151 153
 print <<<FIN
152 154
 Finished!
153 155