Moved announcements to SQL.

This commit is contained in:
MobiusDevelopment
2021-04-24 12:49:26 +00:00
parent 0b60bf915e
commit e43087f9cd
82 changed files with 2014 additions and 1928 deletions

View File

@@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS `announcements` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL,
`initial` bigint(20) NOT NULL DEFAULT 0,
`delay` bigint(20) NOT NULL DEFAULT 0,
`repeat` int(11) NOT NULL DEFAULT 0,
`author` text NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO announcements (`type`, `author`, `content`) VALUES
(0, 'L2jMobius', 'Thanks for using L2jMobius!'),
(0, 'L2jMobius', 'http://www.l2jmobius.org');

View File

@@ -1,9 +0,0 @@
-- --------------------------------------
-- Table structure for auto_announcements
-- --------------------------------------
CREATE TABLE IF NOT EXISTS `auto_announcements` (
`id` int(11) NOT NULL auto_increment,
`announcement` varchar(255) NOT NULL,
`delay` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;