Code: Select all
CREATE TABLE sometable ( somefield mediumint(8) UNSIGNED NOT NULL auto_increment, .... PRIMARY KEY (somefield) ) CHARACTER SET `utf8` COLLATE `utf8_bin`; ALTER TABLE someanothertable ADD someanotherfield mediumint(8) DEFAULT '0' NOT NULL;
Some information about this installer:
- support installing and updating db from version to version including all between version, so all changes will be completed.
- support some configuration, so you can add basic configuration to installer before your mod will be installed.
- can add acp/ucp/mcp modules
- can add new imageset data
- purge cache for template/sql-config
- uses phpbb`s functions
- can be translated
- asks admin access
- checks phpbb minimum version
- based on original phpbb`s installer, but modified for coding guidelines
- passes mpv checks
Oh, sorry, two problems currently it hardcoded for karma mod but if it'll be needed to somebody i'll answer on all questions
Edit reason: Oops, i forgot about modules installing.
Edit reason #2: Also i forgot about imageset and cache.