mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-22 13:25:54 +02:00
Migrations up down
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
|
||||
// add look column
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "monsters` ADD `look` VARCHAR(255) NOT NULL DEFAULT '' AFTER `health`;");
|
||||
$up = function () use ($db) {
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "monsters` ADD `look` VARCHAR(255) NOT NULL DEFAULT '' AFTER `health`;");
|
||||
};
|
||||
|
||||
$down = function () use ($db) {
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "monsters` DROP COLUMN `look`;");
|
||||
};
|
||||
|
Reference in New Issue
Block a user