From bb7c5f147b4c430960142852930be38c5642ce81 Mon Sep 17 00:00:00 2001 From: botanic Date: Thu, 4 Sep 2014 20:29:45 -0700 Subject: [PATCH] fixed installer --- code/web/private_php/setup/config/config.php | 2 +- .../setup/sql/nel_ams_lib_00001.sql | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/code/web/private_php/setup/config/config.php b/code/web/private_php/setup/config/config.php index 56a057cd1..5e087ca00 100644 --- a/code/web/private_php/setup/config/config.php +++ b/code/web/private_php/setup/config/config.php @@ -122,4 +122,4 @@ $INGAME_LAYOUT = "basic"; $FORCE_INGAME = false; //file storage path (must be a publicly accessible url for -$FILE_STORAGE_PATH = "/files/"; \ No newline at end of file +$FILE_STORAGE_PATH = $PUBLIC_PHP_PATH."\\ams\\files\\"; \ No newline at end of file diff --git a/code/web/private_php/setup/sql/nel_ams_lib_00001.sql b/code/web/private_php/setup/sql/nel_ams_lib_00001.sql index 3c9b259b3..2acbb695f 100644 --- a/code/web/private_php/setup/sql/nel_ams_lib_00001.sql +++ b/code/web/private_php/setup/sql/nel_ams_lib_00001.sql @@ -304,6 +304,33 @@ CREATE TABLE IF NOT EXISTS `updates` ( `UpdateInfo` text CHARACTER SET utf8 COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +-- ----------------------------------------------------- +-- Table `nel_ams_lib`.`ticket_attachments` +-- ----------------------------------------------------- + +CREATE TABLE IF NOT EXISTS `nel_ams_lib`.`ticket_attachments` ( + `idticket_attachments` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `ticket_TId` INT(10) UNSIGNED NOT NULL, + `Filename` VARCHAR(45) NOT NULL, + `Timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `Filesize` INT(10) NOT NULL, + `Uploader` INT(10) UNSIGNED NOT NULL, + PRIMARY KEY (`idticket_attachments`), + UNIQUE INDEX `idticket_attachments_UNIQUE` (`idticket_attachments` ASC), + INDEX `fk_ticket_attachments_ticket1_idx` (`ticket_TId` ASC), + INDEX `fk_ticket_attachments_ticket_user1_idx` (`Uploader` ASC), + CONSTRAINT `fk_ticket_attachments_ticket1` + FOREIGN KEY (`ticket_TId`) + REFERENCES `nel_ams_lib`.`ticket` (`TId`) + ON DELETE NO ACTION + ON UPDATE NO ACTION, + CONSTRAINT `fk_ticket_attachments_ticket_user1` + FOREIGN KEY (`Uploader`) + REFERENCES `nel_ams_lib`.`ticket_user` (`TUserId`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; + -- -- Indexes for dumped tables --