Skip to content

Commit

Permalink
DB 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Bonomi committed Apr 18, 2018
1 parent 4a9a753 commit 896c1b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/data_v11.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ limitations under the License.

LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES ('version','10');
INSERT INTO `config` VALUES ('version','11');
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
2 changes: 2 additions & 0 deletions db/upgrade_v10_v11.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
ALTER TABLE `scans`
MODIFY scannerparam VARCHAR(450);

UPDATE `config` SET value=11 where name='version';

SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;

0 comments on commit 896c1b0

Please sign in to comment.