feat: plugin text columns are longtext on mysql so they are not capped at 64KB

This commit is contained in:
LukeGus committed 2026-10-09 09:39:08 -05:00
1 parent 83cce344e8
commit 0ce378ec55
4 files changed
+10 -7

No files matched your search

+5 -5
View File
@@ -184,9 +184,9 @@ describe("createTableSql", () => {
\`user_id\` varchar(255) NOT NULL,
\`host_id\` int NOT NULL,
\`title\` varchar(200) NOT NULL,
\`body\` text,
\`meta\` text,
\`secret\` text,
\`body\` longtext,
\`meta\` longtext,
\`secret\` longtext,
\`pinned\` boolean DEFAULT false,
\`position\` int DEFAULT 0,
\`size\` bigint,
@@ -286,9 +286,9 @@ describe("adoptTableSql", () => {
expect(mysql[1]).toBe("RENAME TABLE `fleets` TO `p_fleets_fleets`;");
});
it("writes a TEXT default as an expression on MySQL", () => {
it("writes a long text default as an expression on MySQL", () => {
expect(adoptTableSql("mysql", "fleets", adopted)[0]).toContain(
"`name` text NOT NULL DEFAULT ('x')",
"`name` longtext NOT NULL DEFAULT ('x')",
);
expect(createTableSql("sqlite", "fleets", adopted)[0]).toContain(
"\"name\" text NOT NULL DEFAULT 'x'",