@@ -399,6 +399,14 @@ static const char tbl_mlists_top[] =
399399" KEY `domain_id` (`domain_id`)"
400400" ) DEFAULT CHARSET=utf8mb4" ;
401401
402+ static const char tbl_orgs_top[] =
403+ " CREATE TABLE `orgs` ("
404+ " `id` int(10) unsigned NOT NULL AUTO_INCREMENT,"
405+ " `name` varchar(32) NOT NULL,"
406+ " `description` varchar(128),"
407+ " PRIMARY KEY (`id`)"
408+ " ) DEFAULT CHARSET=utf8mb4" ;
409+
402410static const char tbl_specifieds_top[] =
403411" CREATE TABLE `specifieds` ("
404412" `id` int(10) unsigned NOT NULL AUTO_INCREMENT,"
@@ -454,7 +462,7 @@ static const struct tbl_init tbl_init_top[] = {
454462 {" members" , tbl_members_top},
455463 {" mlists" , tbl_mlists_top},
456464 {" options" , tbl_options_1},
457- {" orgs" , tbl_orgs_0 },
465+ {" orgs" , tbl_orgs_top },
458466 {" specifieds" , tbl_specifieds_top},
459467 {" users" , tbl_users_top},
460468 {" aliases" , tbl_alias_top},
@@ -578,6 +586,9 @@ static const struct tbl_upgradefn tbl_upgrade_list[] = {
578586 {69 , " ALTER TABLE `classes` ADD COLUMN `domain_id` int(10) unsigned NOT NULL" },
579587 {70 , " ALTER TABLE `classes` ADD CONSTRAINT FOREIGN KEY (`domain_id`) REFERENCES domains (`id`)" },
580588 {71 , tbl_configs_71},
589+ {72 , " ALTER TABLE `orgs` DROP COLUMN `memo`" },
590+ {73 , " ALTER TABLE `orgs` ADD COLUMN `name` varchar(32) NOT NULL" },
591+ {74 , " ALTER TABLE `orgs` ADD COLUMN `description` varchar(128)" },
581592 {0 , nullptr },
582593};
583594
0 commit comments