Ignore:
Timestamp:
Sep 10, 2015, 9:51:23 PM (9 years ago)
Author:
chronos
Message:
  • Added: More appmodule install/uninstallation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Map/Map.php

    r738 r745  
    231231      'Filter' => '1',
    232232    ));
    233 
    234   }
    235 }
     233  }
     234
     235  function DoInstall()
     236  {
     237    $this->System->Database->query("CREATE TABLE IF NOT EXISTS `MapPosition` (
     238  `Id` int(11) NOT NULL AUTO_INCREMENT,
     239  `Name` varchar(255) NOT NULL,
     240  `Pos` varchar(255) NOT NULL,
     241  PRIMARY KEY (`Id`)
     242) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;");
     243  }
     244
     245  function DoUninstall()
     246  {
     247    $this->Database->query('DROP TABLE `MapPosition`');
     248  }
     249}
Note: See TracChangeset for help on using the changeset viewer.