mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-14 04:49:46 +01:00
Migrations up down
This commit is contained in:
@@ -3,4 +3,10 @@
|
||||
// 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;");
|
||||
$up = function () use ($db) {
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` MODIFY `ip` VARCHAR(45) NOT NULL;");
|
||||
};
|
||||
|
||||
$down = function () {
|
||||
// nothing to be done, as we have just extended the size of a column
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user