summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:47:30 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:47:30 +1100
commitfc417bc44625a509fdcc5b1320f5d5511223823c (patch)
tree050fe726791af6a457fee8baa8af320d5eb46590 /templates
parentc5a961a6a52af8a0d6c0085668fe71d9d9de3a9c (diff)
use NULL in database where possible
Diffstat (limited to 'templates')
-rw-r--r--templates/posts.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/posts.sql b/templates/posts.sql
index e3a81ee1..59df4705 100644
--- a/templates/posts.sql
+++ b/templates/posts.sql
@@ -1,9 +1,9 @@
CREATE TABLE IF NOT EXISTS `posts_{{ board }}` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`thread` int(11) DEFAULT NULL,
- `subject` varchar(100) NOT NULL,
- `email` varchar(30) NOT NULL,
- `name` varchar(35) NOT NULL,
+ `subject` varchar(100) DEFAULT NULL,
+ `email` varchar(30) DEFAULT NULL,
+ `name` varchar(35) DEFAULT NULL,
`trip` varchar(15) DEFAULT NULL,
`capcode` varchar(50) DEFAULT NULL,
`body` text NOT NULL,