aaden-cli 1.1.131 → 1.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
USE information_schema;
|
|
2
|
+
SELECT CONCAT("ALTER DATABASE `", table_schema, "` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;") AS _sql
|
|
3
|
+
FROM `TABLES`
|
|
4
|
+
WHERE table_schema LIKE "aaden"
|
|
5
|
+
AND TABLE_TYPE = 'BASE TABLE'
|
|
6
|
+
GROUP BY table_schema
|
|
7
|
+
UNION
|
|
8
|
+
SELECT CONCAT("ALTER TABLE `", table_schema, "`.`", table_name,
|
|
9
|
+
"` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;") AS _sql
|
|
10
|
+
FROM `TABLES`
|
|
11
|
+
WHERE table_schema LIKE "aaden"
|
|
12
|
+
AND TABLE_TYPE = 'BASE TABLE'
|
|
13
|
+
GROUP BY table_schema, table_name
|
|
14
|
+
UNION
|
|
15
|
+
SELECT CONCAT("ALTER TABLE `", `COLUMNS`.table_schema, "`.`", `COLUMNS`.table_name, "` CHANGE `", column_name, "` `",
|
|
16
|
+
column_name, "` ", data_type, "(", character_maximum_length,
|
|
17
|
+
") CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci", IF(is_nullable = "YES", " NULL", " NOT NULL"),
|
|
18
|
+
";") AS _sql
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
echo "getting https://aaden-backend.s3.eu-central-1.amazonaws.com/latest.zip"
|
|
4
4
|
|
|
5
|
+
echo "Innerken322." | sudo -S rm -rf /etc/aaden/updateFiles/*
|
|
5
6
|
echo "Innerken322." | sudo -S mkdir -p /etc/aaden/updateFiles
|
|
6
7
|
|
|
7
8
|
cd || exit
|
|
@@ -21,3 +22,6 @@ mv dist/* backendFiles
|
|
|
21
22
|
echo "Innerken322." | sudo -S cp -rf backendFiles /etc/aaden/updateFiles
|
|
22
23
|
|
|
23
24
|
cat backendFiles/package.json | grep version
|
|
25
|
+
|
|
26
|
+
echo "clean"
|
|
27
|
+
echo "Innerken322." | sudo -S rm -rf ~/files/*
|
package/dist/index.js
CHANGED
|
@@ -57462,7 +57462,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
57462
57462
|
/***/ ((module) => {
|
|
57463
57463
|
|
|
57464
57464
|
"use strict";
|
|
57465
|
-
module.exports = {"i8":"1.1.
|
|
57465
|
+
module.exports = {"i8":"1.1.133"};
|
|
57466
57466
|
|
|
57467
57467
|
/***/ }),
|
|
57468
57468
|
|
|
@@ -57737,6 +57737,7 @@ program.command('printer-test').action(testPrinter)
|
|
|
57737
57737
|
program.command('log').action(log)
|
|
57738
57738
|
program.command('enable-mile-pay').action(enableMilePay)
|
|
57739
57739
|
program.command('start-mile-pay').action(startService)
|
|
57740
|
+
program.command('convert-database').action(convertDataBaseCharset)
|
|
57740
57741
|
program.command('mile-pay-option')
|
|
57741
57742
|
.option('-k, --access-key <accessKey>')
|
|
57742
57743
|
.option('-s, --access-secret <accessSecret>')
|
|
@@ -58014,6 +58015,29 @@ async function updateCheck (channel = '') {
|
|
|
58014
58015
|
return result
|
|
58015
58016
|
}
|
|
58016
58017
|
|
|
58018
|
+
async function convertDataBaseCharset () {
|
|
58019
|
+
try {
|
|
58020
|
+
const result = await updateCheck()
|
|
58021
|
+
if (result.version) {
|
|
58022
|
+
return
|
|
58023
|
+
}
|
|
58024
|
+
if (!result.file) {
|
|
58025
|
+
const command = [
|
|
58026
|
+
...getPrivilegeCMD('AadenDeploy/Utils/updateDataBaseCharSet.sh'),
|
|
58027
|
+
'cd AadenDeploy/Utils',
|
|
58028
|
+
`./updateDataBaseCharSet.sh`
|
|
58029
|
+
]
|
|
58030
|
+
cli.executeInShell(command, program.debug)
|
|
58031
|
+
} else {
|
|
58032
|
+
console.log('已经转换完成')
|
|
58033
|
+
}
|
|
58034
|
+
} catch (e) {
|
|
58035
|
+
console.error(e)
|
|
58036
|
+
}
|
|
58037
|
+
|
|
58038
|
+
}
|
|
58039
|
+
|
|
58040
|
+
|
|
58017
58041
|
async function loadNewVersion () {
|
|
58018
58042
|
try {
|
|
58019
58043
|
const result = await updateCheck()
|
package/index.js
CHANGED
|
@@ -55,6 +55,7 @@ program.command('printer-test').action(testPrinter)
|
|
|
55
55
|
program.command('log').action(log)
|
|
56
56
|
program.command('enable-mile-pay').action(enableMilePay)
|
|
57
57
|
program.command('start-mile-pay').action(startService)
|
|
58
|
+
program.command('convert-database').action(convertDataBaseCharset)
|
|
58
59
|
program.command('mile-pay-option')
|
|
59
60
|
.option('-k, --access-key <accessKey>')
|
|
60
61
|
.option('-s, --access-secret <accessSecret>')
|
|
@@ -332,6 +333,29 @@ async function updateCheck (channel = '') {
|
|
|
332
333
|
return result
|
|
333
334
|
}
|
|
334
335
|
|
|
336
|
+
async function convertDataBaseCharset () {
|
|
337
|
+
try {
|
|
338
|
+
const result = await updateCheck()
|
|
339
|
+
if (result.version) {
|
|
340
|
+
return
|
|
341
|
+
}
|
|
342
|
+
if (!result.file) {
|
|
343
|
+
const command = [
|
|
344
|
+
...getPrivilegeCMD('AadenDeploy/Utils/updateDataBaseCharSet.sh'),
|
|
345
|
+
'cd AadenDeploy/Utils',
|
|
346
|
+
`./updateDataBaseCharSet.sh`
|
|
347
|
+
]
|
|
348
|
+
cli.executeInShell(command, program.debug)
|
|
349
|
+
} else {
|
|
350
|
+
console.log('已经转换完成')
|
|
351
|
+
}
|
|
352
|
+
} catch (e) {
|
|
353
|
+
console.error(e)
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
|
|
335
359
|
async function loadNewVersion () {
|
|
336
360
|
try {
|
|
337
361
|
const result = await updateCheck()
|