diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba907ea183..1fc8c1642e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -159,7 +159,7 @@ jobs: name: huaweiBundle - name: Deploy to Huawei App Gallery - uses: muhamedzeema/appgallery-deply-action@v1 + uses: muhamedzeema/appgallery-deply-action@main with: client-id: ${{secrets.HUAWEI_CLIENT_ID}} client-key: ${{secrets.HUAWEI_CLIENT_KEY}} diff --git a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/6.sqm b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/6.sqm index 8029ea044a..59d1da390b 100644 --- a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/6.sqm +++ b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/6.sqm @@ -1,18 +1,23 @@ -DELETE FROM Currency WHERE name='BTC'; -DELETE FROM Currency WHERE name='CLF'; -DELETE FROM Currency WHERE name='CNH'; -DELETE FROM Currency WHERE name='CUC'; -DELETE FROM Currency WHERE name='KPW'; -DELETE FROM Currency WHERE name='MRO'; -DELETE FROM Currency WHERE name='STD'; -DELETE FROM Currency WHERE name='SVC'; -DELETE FROM Currency WHERE name='XAG'; -DELETE FROM Currency WHERE name='XAU'; -DELETE FROM Currency WHERE name='XPD'; -DELETE FROM Currency WHERE name='XPT'; +DELETE FROM Currency WHERE code='BTC'; +DELETE FROM Currency WHERE code='CLF'; +DELETE FROM Currency WHERE code='CNH'; +DELETE FROM Currency WHERE code='CUC'; +DELETE FROM Currency WHERE code='KPW'; +DELETE FROM Currency WHERE code='MRO'; +DELETE FROM Currency WHERE code='STD'; +DELETE FROM Currency WHERE code='SVC'; +DELETE FROM Currency WHERE code='XAG'; +DELETE FROM Currency WHERE code='XAU'; +DELETE FROM Currency WHERE code='XPD'; +DELETE FROM Currency WHERE code='XPT'; -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('FOK', 'Faroese Króna','kr', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('KID', 'Kiribati Dollar','$', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('SLE', 'Sierra Leonean Leone','Le', 0.0, 0); +ALTER TABLE Conversion ADD COLUMN FOK REAL DEFAULT NULL; +ALTER TABLE Conversion ADD COLUMN KID REAL DEFAULT NULL; +ALTER TABLE Conversion ADD COLUMN SLE REAL DEFAULT NULL; +ALTER TABLE Conversion ADD COLUMN TVD REAL DEFAULT NULL; + +INSERT INTO Currency (code, name, symbol, rate, isActive) VALUES ('FOK', 'Faroese Króna','kr', 0.0, 0); +INSERT INTO Currency (code, name, symbol, rate, isActive) VALUES ('KID', 'Kiribati Dollar','$', 0.0, 0); +INSERT INTO Currency (code, name, symbol, rate, isActive) VALUES ('SLE', 'Sierra Leonean Leone','Le', 0.0, 0); UPDATE Currency SET name = 'Sierra Leonean Leone (2022)' WHERE code = 'SLL'; -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); \ No newline at end of file +INSERT INTO Currency (code, name, symbol, rate, isActive) VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); \ No newline at end of file