Merge pull request 'fix: refs #6818 add defaultChannel' (!3205) from 6818-addDefaultChannel into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3205
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Jorge Penadés 2024-11-14 15:41:10 +00:00
commit 7e2194df41
3 changed files with 16 additions and 5 deletions

View File

@ -13,6 +13,9 @@
}, },
"url": { "url": {
"type": "string" "type": "string"
},
"defaultChannel": {
"type": "number"
} }
}, },
"acls": [ "acls": [

View File

@ -4023,9 +4023,8 @@ INSERT INTO srt.buffer (id, x, y, `size`, `length`, stateFk, typeFk, isActive, c
INSERT IGNORE INTO vn.saySimpleCountry (countryFk, channel) INSERT IGNORE INTO vn.saySimpleCountry (countryFk, channel)
VALUES (19, 1169), VALUES (19, '1169'),
(8, 1183), (8, '1183');
(NULL, 1320);
INSERT IGNORE INTO vn.saySimpleConfig (url) INSERT IGNORE INTO vn.saySimpleConfig (url, defaultChannel)
VALUES ('saysimle-url-mock'); VALUES ('saysimle-url-mock', 1320);

View File

@ -0,0 +1,9 @@
DROP TABLE IF EXISTS vn.saySimpleConfig;
CREATE TABLE vn.saySimpleConfig(
id INT AUTO_INCREMENT PRIMARY KEY,
url VARCHAR(255) NOT NULL,
defaultChannel VARCHAR(128)
);
ALTER TABLE vn.saySimpleCountry MODIFY COLUMN channel VARCHAR(128);