Skip to content

Commit

Permalink
updated schema with new column; augmented ci validation with new field
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Mar 2, 2024
1 parent 47c14e1 commit 16bcb58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions controllers/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Zookeeper Online
*
* @author Jim Mason <[email protected]>
* @copyright Copyright (C) 1997-2023 Jim Mason <[email protected]>
* @copyright Copyright (C) 1997-2024 Jim Mason <[email protected]>
* @link https://zookeeper.ibinx.com/
* @license GPL-3.0
*
Expand Down Expand Up @@ -464,7 +464,8 @@ public function validateLibrary() {
'coll' => false,
'tracks' => [
[
'track' => 'TEST track 1'
'track' => 'TEST track 1',
'duration' => '00:01:23'
],[
'track' => 'TEST track 2'
]
Expand Down
4 changes: 3 additions & 1 deletion db/zkdbSchema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Zookeeper Online
*
* @author Jim Mason <[email protected]>
* @copyright Copyright (C) 1997-2023 Jim Mason <[email protected]>
* @copyright Copyright (C) 1997-2024 Jim Mason <[email protected]>
* @link https://zookeeper.ibinx.com/
* @license GPL-3.0
*
Expand Down Expand Up @@ -192,6 +192,7 @@ CREATE TABLE IF NOT EXISTS `colltracknames` (
`artist` varchar(80) DEFAULT NULL,
`url` varchar(2083) NOT NULL DEFAULT '',
`seq` smallint(6) DEFAULT NULL,
`duration` time DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tag` (`tag`),
KEY `track` (`track`),
Expand Down Expand Up @@ -412,6 +413,7 @@ CREATE TABLE IF NOT EXISTS `tracknames` (
`track` varchar(80) DEFAULT NULL,
`url` varchar(2083) NOT NULL DEFAULT '',
`seq` smallint(6) DEFAULT NULL,
`duration` time DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tag` (`tag`),
KEY `track` (`track`),
Expand Down

0 comments on commit 16bcb58

Please sign in to comment.