Migrations up down

This commit is contained in:
slawkens
2024-09-05 15:34:49 +02:00
parent d99b22f98b
commit b5dcf76d8e
10 changed files with 211 additions and 77 deletions

View File

@@ -1,4 +1,10 @@
<?php
// Increase size of page in myaac_visitors table
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` MODIFY `page` VARCHAR(2048) NOT NULL;");
$up = function () use ($db) {
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` MODIFY `page` VARCHAR(2048) NOT NULL;");
};
$down = function () {
// nothing to be done, as we have just extended the size of a column
};