Integrated the transfer/announcement table changes into the default db creation script

This commit is contained in:
Christian 'ketura' McCarty
2025-08-09 16:56:18 -05:00
parent 1331826c11
commit b725c86526

View File

@@ -311,19 +311,34 @@ DROP TABLE IF EXISTS `transfer`;
SET character_set_client = utf8mb4 ; SET character_set_client = utf8mb4 ;
CREATE TABLE `transfer` ( CREATE TABLE `transfer` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`notify` int(11) NOT NULL, `notify` BIT NOT NULL DEFAULT 0,
`player` varchar(45) NOT NULL, `player` varchar(45) NOT NULL,
`reason` varchar(255) NOT NULL, `reason` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL, `collection` varchar(255) NOT NULL,
`currency` int(11) NOT NULL, `currency` INT(11) NOT NULL DEFAULT 0,
`collection` text NOT NULL, `contents` text NOT NULL,
`transfer_date` decimal(20,0) NOT NULL, `date_recorded` DATETIME NOT NULL DEFAULT now(),
`direction` varchar(45) NOT NULL, `direction` varchar(45) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `player` (`player`,`notify`) KEY `player` (`player`,`notify`)
) ENGINE=InnoDB AUTO_INCREMENT=3644 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ) ENGINE=InnoDB AUTO_INCREMENT=3644 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `announcements`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `announcements` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_bin NOT NULL,
`content` text COLLATE utf8_bin NOT NULL,
`start` datetime NOT NULL DEFAULT NOW(),
`until` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
-- --
-- Dumping routines for database 'gemp_db' -- Dumping routines for database 'gemp_db'
-- --