From 5aca6114d406f4ee09ad0790ce4ccdbe200f520a Mon Sep 17 00:00:00 2001
From: Ellie Huxtable <ellie@elliehuxtable.com>
Date: Thu, 21 Apr 2022 18:54:58 +0100
Subject: Allow for larger commands (#321)

Followup: Limit command length client side too
---
 atuin-server/migrations/20220421174016_larger-commands.sql | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 atuin-server/migrations/20220421174016_larger-commands.sql

(limited to 'atuin-server/migrations/20220421174016_larger-commands.sql')

diff --git a/atuin-server/migrations/20220421174016_larger-commands.sql b/atuin-server/migrations/20220421174016_larger-commands.sql
new file mode 100644
index 00000000..0ac43433
--- /dev/null
+++ b/atuin-server/migrations/20220421174016_larger-commands.sql
@@ -0,0 +1,3 @@
+-- Make it 4x larger. Most commands are less than this, but as it's base64
+-- SOME are more than 8192. Should be enough for now.
+ALTER TABLE history ALTER COLUMN data TYPE varchar(32768);
-- 
cgit v1.3.1

