Skip to content

Commit b5537b5

Browse files
committed
mysql text -> mediumtext
1 parent 0621cfc commit b5537b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

schema_example/mysql_ddl.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CREATE TABLE users (
1313
location VARCHAR(512),
1414
profile_image_url VARCHAR(255),
1515
website_url VARCHAR(255),
16-
about_me TEXT,
16+
about_me MEDIUMTEXT,
1717
creation_date TIMESTAMP(3) NOT NULL,
1818
last_access_date TIMESTAMP(3) NOT NULL
1919
);
@@ -35,7 +35,7 @@ CREATE TABLE posts (
3535
title VARCHAR(512),
3636
tags VARCHAR(512),
3737
content_license VARCHAR(64) NOT NULL,
38-
body TEXT,
38+
body MEDIUMTEXT,
3939
favorite_count INTEGER,
4040
creation_date TIMESTAMP(3) NOT NULL,
4141
community_owned_date TIMESTAMP(3),
@@ -63,8 +63,8 @@ CREATE TABLE post_history (
6363
user_display_name VARCHAR(64),
6464
content_license VARCHAR(64),
6565
revision_guid uuid,
66-
text TEXT,
67-
comment TEXT,
66+
text MEDIUMTEXT,
67+
comment MEDIUMTEXT,
6868
creation_date TIMESTAMP(3) NOT NULL
6969
);
7070

@@ -76,7 +76,7 @@ CREATE TABLE comments (
7676
score TINYINT NOT NULL,
7777
content_license VARCHAR(64) NOT NULL,
7878
user_display_name VARCHAR(64),
79-
text TEXT,
79+
text MEDIUMTEXT,
8080
creation_date TIMESTAMP(3) NOT NULL
8181
);
8282

0 commit comments

Comments
 (0)