diff options
Diffstat (limited to 'db/update.d')
-rw-r--r-- | db/update.d/02_AngelTypes.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/db/update.d/02_AngelTypes.php b/db/update.d/02_AngelTypes.php index 8ac50948..b5561402 100644 --- a/db/update.d/02_AngelTypes.php +++ b/db/update.d/02_AngelTypes.php @@ -1,3 +1,9 @@ <?php -_rename_table("EngelType", "AngelTypes"); +if(_rename_table("EngelType", "AngelTypes")) + sql_query("ALTER TABLE `AngelTypes` + CHANGE `TID` `id` INT NOT NULL AUTO_INCREMENT, + CHANGE `Name` `name` VARCHAR(25) NOT NULL DEFAULT '', + DROP `Man`, + ADD `restricted` INT(1) NOT NULL + "); ?> |