Files
myaac/system/migrations/4.php
2017-08-28 22:43:03 +02:00

4 lines
178 B
PHP

<?php
if(!fieldExist('id', TABLE_PREFIX . 'monsters'))
$db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;");
?>