From 26ce91bdfe039f1ab7466cabada6002c07be6b2b Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Fri, 5 Jan 2024 00:19:09 +0000 Subject: [PATCH] Grow Devices.model DB field from 30 to 64 chars See https://github.com/bluecherrydvr/bluecherry-apps/issues/647 --- .../mysql-upgrade/3000012/enlarge_devices_model_field.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 misc/sql/mysql-upgrade/3000012/enlarge_devices_model_field.sh diff --git a/misc/sql/mysql-upgrade/3000012/enlarge_devices_model_field.sh b/misc/sql/mysql-upgrade/3000012/enlarge_devices_model_field.sh new file mode 100755 index 00000000..5cd74a8d --- /dev/null +++ b/misc/sql/mysql-upgrade/3000012/enlarge_devices_model_field.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo ' +ALTER TABLE Devices MODIFY model varchar(64); +' | mysql -h"$host" -D"$dbname" -u"$user" -p"$password" + +exit 0