From ea1b2e5ae26598ced6c2bdbc705756c3c968781c Mon Sep 17 00:00:00 2001
From: Pepper <pepper@scannerjammer.com>
Date: Mon, 26 Aug 2019 22:52:50 -0400
Subject: fixed some things

---
 bucky-schema.sql | 59 ++++++++++++++++++++++++++++----------------------------
 1 file changed, 30 insertions(+), 29 deletions(-)

(limited to 'bucky-schema.sql')

diff --git a/bucky-schema.sql b/bucky-schema.sql
index 9095d66..2adcfec 100644
--- a/bucky-schema.sql
+++ b/bucky-schema.sql
@@ -1,8 +1,8 @@
--- MySQL dump 10.13  Distrib 5.6.22, for osx10.10 (x86_64)
+-- MariaDB dump 10.17  Distrib 10.4.7-MariaDB, for Linux (x86_64)
 --
 -- Host: localhost    Database: bucky3
 -- ------------------------------------------------------
--- Server version	5.6.22
+-- Server version	10.3.12-MariaDB-log
 
 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -28,7 +28,7 @@ CREATE TABLE `boxes` (
   `owner` varchar(16) NOT NULL DEFAULT '',
   `editable` tinyint(4) DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=593 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=662 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -40,14 +40,15 @@ DROP TABLE IF EXISTS `comments`;
 /*!40101 SET character_set_client = utf8 */;
 CREATE TABLE `comments` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
-  `thread` int(11) NOT NULL DEFAULT '0',
-  `parent_id` int(11) NOT NULL DEFAULT '0',
+  `thread` int(11) NOT NULL DEFAULT 0,
+  `parent_id` int(11) NOT NULL DEFAULT 0,
   `username` varchar(16) NOT NULL DEFAULT '',
-  `date` int(11) NOT NULL DEFAULT '0',
-  `comment` blob,
+  `date` int(11) NOT NULL DEFAULT 0,
+  `comment` blob DEFAULT NULL,
   `hidden` int(11) DEFAULT NULL,
+  `storage` varchar(32) DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=24058 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=35359 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -62,12 +63,12 @@ CREATE TABLE `files` (
   `thread` int(11) DEFAULT NULL,
   `username` varchar(16) NOT NULL DEFAULT '',
   `filename` varchar(192) NOT NULL DEFAULT '',
-  `date` int(11) NOT NULL DEFAULT '0',
+  `date` int(11) NOT NULL DEFAULT 0,
   `size` int(11) DEFAULT NULL,
-  `private` int(11) DEFAULT NULL,
+  `privacy` smallint(1) DEFAULT NULL,
   `storage` varchar(32) DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=26430 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=29503 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -80,9 +81,9 @@ DROP TABLE IF EXISTS `invites`;
 CREATE TABLE `invites` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `hash` varchar(16) DEFAULT '',
-  `state` int(11) NOT NULL DEFAULT '0',
+  `state` int(11) NOT NULL DEFAULT 0,
   `attest` varchar(16) DEFAULT '',
-  `created` int(11) NOT NULL DEFAULT '0',
+  `created` int(11) NOT NULL DEFAULT 0,
   `username` varchar(16) DEFAULT '',
   PRIMARY KEY (`id`)
 ) ENGINE=MyISAM AUTO_INCREMENT=159 DEFAULT CHARSET=latin1;
@@ -99,12 +100,12 @@ CREATE TABLE `keywords` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `keyword` varchar(16) NOT NULL DEFAULT '',
   `owner` varchar(16) NOT NULL DEFAULT '',
-  `createdate` int(11) NOT NULL DEFAULT '0',
+  `createdate` int(11) NOT NULL DEFAULT 0,
   `settings` varchar(512) DEFAULT NULL,
   `public` int(11) DEFAULT NULL,
   `color` varchar(16) DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=94 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=140 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -120,11 +121,11 @@ CREATE TABLE `messages` (
   `unread` tinyint(4) DEFAULT NULL,
   `sender` varchar(16) NOT NULL DEFAULT '',
   `recipient` varchar(16) NOT NULL DEFAULT '',
-  `date` int(11) NOT NULL DEFAULT '0',
+  `date` int(11) NOT NULL DEFAULT 0,
   `subject` varchar(64) NOT NULL DEFAULT '',
-  `body` blob,
+  `body` blob DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=6471 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=6651 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -155,18 +156,18 @@ CREATE TABLE `threads` (
   `title` varchar(64) NOT NULL DEFAULT '',
   `username` varchar(16) NOT NULL DEFAULT '',
   `keyword` varchar(16) DEFAULT NULL,
-  `createdate` int(11) NOT NULL DEFAULT '0',
+  `createdate` int(11) NOT NULL DEFAULT 0,
   `lastmodified` int(11) DEFAULT NULL,
   `size` int(11) DEFAULT NULL,
-  `private` smallint(6) DEFAULT NULL,
-  `allowed` varchar(512) DEFAULT NULL,
+  `privacy` smallint(6) DEFAULT 0,
+  `allowed` varchar(500) DEFAULT NULL,
   `flagged` int(11) DEFAULT NULL,
   `color` varchar(16) DEFAULT NULL,
   `viewed` int(11) DEFAULT NULL,
-  `revision` int(11) DEFAULT '0',
+  `revision` int(11) DEFAULT 0,
   `settings` varchar(512) DEFAULT '{}',
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=3401 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=4504 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -183,19 +184,19 @@ CREATE TABLE `users` (
   `realname` varchar(64) DEFAULT NULL,
   `email` varchar(64) DEFAULT NULL,
   `ulevel` int(11) DEFAULT NULL,
-  `grass` blob,
+  `grass` blob DEFAULT NULL,
   `firstseen` int(11) DEFAULT NULL,
   `lastseen` int(11) DEFAULT NULL,
   `phone` varchar(64) DEFAULT NULL,
-  `location` varchar(64) DEFAULT NULL,
-  `twitter` varchar(256) DEFAULT NULL,
   `website` varchar(255) DEFAULT NULL,
-  `avatar` varchar(255) DEFAULT NULL,
+  `location` varchar(64) DEFAULT NULL,
+  `twitter` varchar(255) DEFAULT NULL,
   `keywords` varchar(512) DEFAULT '',
   `stickies` varchar(512) DEFAULT '',
   `settings` varchar(512) DEFAULT '',
+  `avatar` varchar(255) DEFAULT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=221 DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM AUTO_INCREMENT=244 DEFAULT CHARSET=utf8;
 /*!40101 SET character_set_client = @saved_cs_client */;
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
 
@@ -207,4 +208,4 @@ CREATE TABLE `users` (
 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
 
--- Dump completed on 2017-12-13  0:31:19
+-- Dump completed on 2019-08-26 22:40:10
-- 
cgit v1.2.3-70-g09d2

