Skip to content

Commit

Permalink
Compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
diller110 committed Aug 26, 2019
1 parent 3a88272 commit 29d69c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
29 changes: 14 additions & 15 deletions web/SQL запрос.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ CREATE TABLE IF NOT EXISTS `magic_words` (
ENGINE = InnoDB;


-- -----------------------------------------------------
-- Table `servers`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `servers` (
`srv_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`ip` VARCHAR(64) NOT NULL,
`port` INT NOT NULL,
`title` VARCHAR(128) NULL DEFAULT 'Server',
`rcon` VARCHAR(192) NULL,
`adv_time` FLOAT NULL DEFAULT 45,
PRIMARY KEY (`srv_id`))
ENGINE = InnoDB;


-- -----------------------------------------------------
-- Table `server_ads`
-- -----------------------------------------------------
Expand All @@ -88,21 +102,6 @@ CREATE TABLE IF NOT EXISTS `server_ads` (
ON UPDATE CASCADE)
ENGINE = InnoDB;


-- -----------------------------------------------------
-- Table `servers`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `servers` (
`srv_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`ip` VARCHAR(64) NOT NULL,
`port` INT NOT NULL,
`title` VARCHAR(128) NULL DEFAULT 'Server',
`rcon` VARCHAR(192) NULL,
`adv_time` FLOAT NULL DEFAULT 45,
PRIMARY KEY (`srv_id`))
ENGINE = InnoDB;


-- -----------------------------------------------------
-- View `ads`
-- -----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion web/advert/app/DB.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
/*
DataBaseBridge class, if for centralized work with database, wrap some boring staff.
All incoming data, will check, escape.
Expand Down

0 comments on commit 29d69c8

Please sign in to comment.