engelsystem/db/update.sql

22 lines
742 B
MySQL
Raw Normal View History

2011-10-11 19:47:49 +02:00
/* Update für #27, iCal-Export */
2011-10-11 23:43:44 +02:00
ALTER TABLE `User` ADD `ical_key` VARCHAR( 32 ) NOT NULL;
2011-10-11 23:45:14 +02:00
ALTER TABLE `User` ADD INDEX ( `ical_key` );
2011-10-11 19:47:49 +02:00
2011-10-11 23:48:29 +02:00
INSERT INTO `Privileges` (
2011-10-11 19:47:49 +02:00
`id` ,
`name` ,
`desc`
)
VALUES (
2011-10-11 23:48:29 +02:00
NULL , 'ical', 'iCal shift export'
);
/* DECT Nummern können für GSM auch 5-stellig sein. */
2011-12-21 22:20:06 +01:00
ALTER TABLE `User` CHANGE `DECT` `DECT` VARCHAR( 5 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
/* Neues Engeltypen-System */
ALTER TABLE `AngelTypes` DROP `Man`;
ALTER TABLE `AngelTypes` CHANGE `TID` `id` INT( 11 ) NOT NULL AUTO_INCREMENT;
ALTER TABLE `AngelTypes` CHANGE `Name` `name` VARCHAR( 25 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `AngelTypes` ADD `restricted` INT( 1 ) NOT NULL;