1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

change varchar(65535) to text

This commit is contained in:
Lynne Megido 2019-09-01 15:57:42 +10:00
parent 0895444405
commit 5dd0b2aa03

View file

@ -1,3 +1,4 @@
USE `fedibooks`;
CREATE TABLE IF NOT EXISTS `users` ( CREATE TABLE IF NOT EXISTS `users` (
`id` BINARY(64) PRIMARY KEY, `id` BINARY(64) PRIMARY KEY,
`email` VARCHAR(128) UNIQUE NOT NULL, `email` VARCHAR(128) UNIQUE NOT NULL,
@ -43,7 +44,7 @@ CREATE TABLE IF NOT EXISTS `fedi_account` (
CREATE TABLE IF NOT EXISTS `posts` ( CREATE TABLE IF NOT EXISTS `posts` (
`id` BIGINT AUTO_INCREMENT PRIMARY KEY, `id` BIGINT AUTO_INCREMENT PRIMARY KEY,
`post_id` VARCHAR(64) NOT NULL, `post_id` VARCHAR(64) NOT NULL,
`content` VARCHAR(65535) NOT NULL, `content` TEXT NOT NULL,
`cw` BOOLEAN NOT NULL `cw` BOOLEAN NOT NULL
); );
CREATE TABLE IF NOT EXISTS `word_blacklist` ( CREATE TABLE IF NOT EXISTS `word_blacklist` (