mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-22 21:35:56 +02:00
Migrations up down
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user