This commit is contained in:
slawkens
2022-06-04 21:43:37 +02:00
parent 3d56214c07
commit d683fce2b9
3 changed files with 9 additions and 3 deletions

6
system/migrations/33.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
// Increase size of ip in myaac_visitors table
// according to this answer: https://stackoverflow.com/questions/166132/maximum-length-of-the-textual-representation-of-an-ipv6-address
// the size of ipv6 can be maximal 45 chars
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` MODIFY `ip` VARCHAR(45) NOT NULL;");