Skip to content

Commit

Permalink
Merge pull request #1626 from OCSInventory-NG/updateTvalueTypeDevices
Browse files Browse the repository at this point in the history
refactor(devices): update TVALUE column type to use TEXT
  • Loading branch information
charleneauger authored Sep 16, 2024
2 parents 6382ba4 + 4ef048f commit 2c50ec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions files/update/7079.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
UNLOCK TABLES;

-- Drop the existing index on TVALUE
ALTER TABLE devices DROP INDEX TVALUE;

-- Update column to TEXT and recreate the index
ALTER TABLE devices MODIFY COLUMN TVALUE TEXT;
ADD INDEX TVALUE (TVALUE(255));
2 changes: 1 addition & 1 deletion var.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
/**
* OCS' MySQL database version
*/
define('GUI_VER', '7078');
define('GUI_VER', '7079');


/**
Expand Down

0 comments on commit 2c50ec7

Please sign in to comment.