diff options
author | Simon Rettberg | 2016-06-09 16:07:06 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-06-09 16:07:06 +0200 |
commit | 13aa6d30defcbed0f594156310e3f76de18bf31d (patch) | |
tree | 8fec809737f448c7a9d1485646d77395ae66e048 /modules-available/citymanagement | |
parent | [css] Fix z-order of warning bar (diff) | |
download | slx-admin-13aa6d30defcbed0f594156310e3f76de18bf31d.tar.gz slx-admin-13aa6d30defcbed0f594156310e3f76de18bf31d.tar.xz slx-admin-13aa6d30defcbed0f594156310e3f76de18bf31d.zip |
[install] Add/refine more module's install scripts
Diffstat (limited to 'modules-available/citymanagement')
-rw-r--r-- | modules-available/citymanagement/install.inc.php | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/modules-available/citymanagement/install.inc.php b/modules-available/citymanagement/install.inc.php index 71f13299..b051ca5c 100644 --- a/modules-available/citymanagement/install.inc.php +++ b/modules-available/citymanagement/install.inc.php @@ -1,7 +1,22 @@ <?php -/** - * Created by PhpStorm. - * User: sr - * Date: 09.06.16 - * Time: 15:39 - */
\ No newline at end of file + +$res = array(); + +$res[] = tableCreate('cities', " + `cityid` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `ip` varchar(10) NOT NULL, + PRIMARY KEY (`cityid`) +"); + +// Update path + +// -- none -- + +// Create response for browser + +if (in_array(UPDATE_DONE, $res)) { + finalResponse(UPDATE_DONE, 'Tables created successfully'); +} + +finalResponse(UPDATE_NOOP, 'Everything already up to date'); |