Artifacts fixing part 1

+Added a new table in the database, called "artefacts_chrono" which
stores the chronology of all artifacts
+Added the support for the artifacts chronology in 27_show.tpl
+Added the support for interacting with the artifacts chronology table in Database.php
+Cleaned the code in 27_show.tpl
+Some minor improovements and bug fixing
This commit is contained in:
iopietro
2018-04-23 20:28:38 +02:00
parent f810c9fe99
commit 26cb03cdb6
8 changed files with 212 additions and 93 deletions
+19
View File
@@ -212,6 +212,25 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%artefacts` (
--
-- --------------------------------------------------------
--
-- Table structure for `%PREFIX%artefacts_chrono`
--
CREATE TABLE IF NOT EXISTS `%PREFIX%artefacts_chrono` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`artefactid` int(11) NULL,
`uid` int(11) NULL,
`vref` int(11) NULL,
`conqueredtime` int(11) NULL,
PRIMARY KEY (`id`),
KEY `artefactid-conqueredtime` (`artefactid`,`conqueredtime`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
--
-- Table structure for table `%PREFIX%artefacts_chrono`
--
-- --------------------------------------------------------
--
-- Table structure for table `%PREFIX%alidata`
--