Adjust post_ip to support ipv6

This commit is contained in:
slawkens
2025-01-09 13:10:04 +01:00
parent 68bdec7c18
commit eb4b3ada49
3 changed files with 18 additions and 3 deletions

15
system/migrations/42.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
/**
* @var OTS_DB_MySQL $db
*/
// 2025-09-01
// resize forum.post_ip to support ipv6
$up = function () use ($db) {
$db->modifyColumn(TABLE_PREFIX . 'forum', 'post_ip', "varchar(45) NOT NULL default '0.0.0.0'");
};
$down = function () {
// there is no downgrade for this
};