From 5dd0b2aa033a143373c584e712604d01612ec461 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 15:57:42 +1000 Subject: [PATCH] change varchar(65535) to text --- setup.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sql b/setup.sql index fce1971..ae3316d 100644 --- a/setup.sql +++ b/setup.sql @@ -1,3 +1,4 @@ +USE `fedibooks`; CREATE TABLE IF NOT EXISTS `users` ( `id` BINARY(64) PRIMARY KEY, `email` VARCHAR(128) UNIQUE NOT NULL, @@ -43,7 +44,7 @@ CREATE TABLE IF NOT EXISTS `fedi_account` ( CREATE TABLE IF NOT EXISTS `posts` ( `id` BIGINT AUTO_INCREMENT PRIMARY KEY, `post_id` VARCHAR(64) NOT NULL, - `content` VARCHAR(65535) NOT NULL, + `content` TEXT NOT NULL, `cw` BOOLEAN NOT NULL ); CREATE TABLE IF NOT EXISTS `word_blacklist` (