From e71cd272daebfca154f7aae9cbc0d4d2d85bc5fd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:11:14 +0100 Subject: [PATCH 01/96] [Oztechan/Config#12] Update multiplatformSettings to v1.1.1 (#2975) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index adcaba1355..37123179f7 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,7 +17,7 @@ koinCompose = "3.5.0" koinAndroid = "3.5.0" koinKtor = "3.5.1" ktor = "2.3.6" -multiplatformSettings = "1.1.0" +multiplatformSettings = "1.1.1" firebaseAnalytics = "21.3.0" firebaseRemoteConfig = "21.6.0" googleServices = "4.4.0" From 3f6393859ea02c1d24f86dff4e140f938a217ec0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:48:05 +0100 Subject: [PATCH 02/96] [Oztechan/Config#12] Update androidGradlePlugin to v8.1.4 (#2970) * [Oztechan/Config#12] Update Git Submodules Co-authored-by: Mustafa Ozhan * [Oztechan/Config#12] Update androidGradlePlugin to v8.1.4 Co-authored-by: Mustafa Ozhan --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- gradle/libs.versions.toml | 2 +- submodule/basemob | 2 +- submodule/logmob | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 37123179f7..762521f00b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ kotlin = "1.9.20" ksp = "1.9.20-1.0.14" detekt = "1.23.3" -androidGradlePlugin = "8.1.3" +androidGradlePlugin = "8.1.4" composeCompiler = "1.5.4" compose = "1.5.4" glance = "1.0.0" diff --git a/submodule/basemob b/submodule/basemob index 9b3782c835..b03ece2a6b 160000 --- a/submodule/basemob +++ b/submodule/basemob @@ -1 +1 @@ -Subproject commit 9b3782c8356c9608745d9229ef98a1201edaa704 +Subproject commit b03ece2a6b063a3a4dc217e81210d78e9b344288 diff --git a/submodule/logmob b/submodule/logmob index 4af3985d1a..49fe11a2b6 160000 --- a/submodule/logmob +++ b/submodule/logmob @@ -1 +1 @@ -Subproject commit 4af3985d1a49260e9b0ff3b860c5fd6ff53d0470 +Subproject commit 49fe11a2b6be987e80a189f83947795a3a5630f7 From 783821ac8e4105c253d42a6b341f1a6275dc6d1d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:40:30 +0100 Subject: [PATCH 03/96] [Oztechan/Config#12] Update dependency com.android.billingclient:billing to v6.1.0 (#2967) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 762521f00b..6bdb084ba8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -31,7 +31,7 @@ navigation = "2.7.5" playCore = "1.10.3" kotlinXDateTime = "0.4.1" coroutines = "1.7.3" -billing = "6.0.1" +billing = "6.1.0" leakCanary = "2.12" sqlDelight = "1.5.5" lifecycle = "2.6.2" From 3dc68fc2b7be9ea9d3f4b572b83d0574459b5732 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Thu, 23 Nov 2023 15:33:08 +0100 Subject: [PATCH 04/96] [Oztechan/Global#4] Global config update synced file(s) with Oztechan/Global (#2978) * [Oztechan/Global#4] Global config update synced local 'docs/CONTRIBUTING.md' with remote 'docs/CONTRIBUTING.md' * [Oztechan/Global#4] Global config update synced local 'docs/PULL_REQUEST_TEMPLATE.md' with remote 'docs/PULL_REQUEST_TEMPLATE.md' * [Oztechan/Global#4] Global config update synced local 'renovate.json' with remote 'renovate.json' --- docs/CONTRIBUTING.md | 6 +++--- docs/PULL_REQUEST_TEMPLATE.md | 2 +- renovate.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index f4eacd7020..f70a0e6767 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -17,7 +17,7 @@ Every commit message should match the following format `[Oztechan/REPO_NAME#ISSU Example: ``` -[Oztechan/Config#123] My cool feature +[Oztechan/Global#123] My cool feature ``` ## Pull Request @@ -33,7 +33,7 @@ Pull Request title should follow below format: Example: ``` -[Oztechan/Config#123] Whatever the name of ticket is +[Oztechan/Global#123] Whatever the name of ticket is ``` ### Description @@ -43,7 +43,7 @@ Description has to have `Resloves Oztechan/REPO_NAME#ISSUE_ID` with relevant iss Example: ``` -Resolves Oztechan/Config#123 +Resolves Oztechan/Global#123 Some description. ``` diff --git a/docs/PULL_REQUEST_TEMPLATE.md b/docs/PULL_REQUEST_TEMPLATE.md index e4875821a0..f1d2ae9774 100644 --- a/docs/PULL_REQUEST_TEMPLATE.md +++ b/docs/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,7 @@ Resolves Oztechan/REPO_NAME#ISSUE_ID From 8ecd30923f58fc7b1f984ed332a7b5372e636bc2 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Fri, 24 Nov 2023 22:33:14 +0100 Subject: [PATCH 07/96] [Oztechan/CCC#2981] Fail rest of the builds when CodeAnalysis fail (#2984) --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccab63d586..29a529ca9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -318,10 +318,6 @@ jobs: with: name: coverageReport - - name: Cancel other jobs if this fails - if: failure() - uses: andymckay/cancel-action@0.3 - - name: Set Job Status id: status run: echo "status=success" >> $GITHUB_OUTPUT @@ -355,6 +351,10 @@ jobs: with: args: --strict + - name: Cancel other jobs if this fails + if: failure() + uses: andymckay/cancel-action@0.3 + - name: Set Job Status id: status run: echo "status=success" >> $GITHUB_OUTPUT From 198b6053b06b94c1c578243db5645529ff6c8bc2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:57:48 +0100 Subject: [PATCH 08/96] [Oztechan/Global#12] Update detekt to v1.23.4 (#2986) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6bdb084ba8..75a4c8a673 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ kotlin = "1.9.20" ksp = "1.9.20-1.0.14" -detekt = "1.23.3" +detekt = "1.23.4" androidGradlePlugin = "8.1.4" composeCompiler = "1.5.4" compose = "1.5.4" From 9b4e94fc46d56ef608d623739253dc15ca23aff5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:25:22 +0100 Subject: [PATCH 09/96] [Oztechan/Global#12] Lock file maintenance (#2989) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- ios/Gemfile.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ios/Gemfile.lock b/ios/Gemfile.lock index d742d5e015..0d7da2e0cd 100644 --- a/ios/Gemfile.lock +++ b/ios/Gemfile.lock @@ -7,21 +7,21 @@ GEM public_suffix (>= 2.0.2, < 6.0) artifactory (3.0.15) atomos (0.1.3) - aws-eventstream (1.2.0) - aws-partitions (1.853.0) - aws-sdk-core (3.187.0) + aws-eventstream (1.3.0) + aws-partitions (1.856.0) + aws-sdk-core (3.188.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.72.0) - aws-sdk-core (~> 3, >= 3.184.0) + aws-sdk-kms (1.73.0) + aws-sdk-core (~> 3, >= 3.188.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.137.0) - aws-sdk-core (~> 3, >= 3.181.0) + aws-sdk-s3 (1.139.0) + aws-sdk-core (~> 3, >= 3.188.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.6) - aws-sigv4 (1.6.1) + aws-sigv4 (1.7.0) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) claide (1.1.0) From 60943cc3f8004c25b695691757f61a3c094aeec1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:26:34 +0100 Subject: [PATCH 10/96] [Oztechan/Global#12] Update Git Submodules (#2976) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- submodule/basemob | 2 +- submodule/logmob | 2 +- submodule/parsermob | 2 +- submodule/scopemob | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/submodule/basemob b/submodule/basemob index b03ece2a6b..61ea745676 160000 --- a/submodule/basemob +++ b/submodule/basemob @@ -1 +1 @@ -Subproject commit b03ece2a6b063a3a4dc217e81210d78e9b344288 +Subproject commit 61ea745676ba97cd90cc35cbdd26e694b3b62aa3 diff --git a/submodule/logmob b/submodule/logmob index 49fe11a2b6..801dda62c0 160000 --- a/submodule/logmob +++ b/submodule/logmob @@ -1 +1 @@ -Subproject commit 49fe11a2b6be987e80a189f83947795a3a5630f7 +Subproject commit 801dda62c0beedf427c2cf65ac1cf27f1b64700d diff --git a/submodule/parsermob b/submodule/parsermob index af65bdecbd..b6d72a44bd 160000 --- a/submodule/parsermob +++ b/submodule/parsermob @@ -1 +1 @@ -Subproject commit af65bdecbda3f5435c5868568b4c72b596e7de8b +Subproject commit b6d72a44bd7f34ab021c69bffbade488a4077712 diff --git a/submodule/scopemob b/submodule/scopemob index 0a96a283ca..dc5664dfd5 160000 --- a/submodule/scopemob +++ b/submodule/scopemob @@ -1 +1 @@ -Subproject commit 0a96a283cac42e0a1bf12659bc089db6994c377a +Subproject commit dc5664dfd5b2c889f0ecbe7ca1b5c03e29a8185f From df9cbe93b8892dbb0d7642ab4a5e003585383113 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Sat, 2 Dec 2023 14:23:44 +0100 Subject: [PATCH 11/96] [Oztechan/CCC#2987] Move Project Automations to Global (#2988) * [Oztechan/CCC#2987] Move Project Automations to Global * [Oztechan/CCC#2987] Move Project Automations to Global * [Oztechan/CCC#2987] Move Project Automations to Global --- .github/workflows/project.yml | 60 +++-------------------------------- 1 file changed, 4 insertions(+), 56 deletions(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 20ef128cad..33ec9f18d4 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -14,59 +14,7 @@ on: jobs: ProjectAutomations: - runs-on: ubuntu-latest - steps: - - name: 'Add issue to project' - if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') - uses: leonsteinhaeuser/project-beta-automations@v2.2.1 - with: - gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: Oztechan - project_id: 2 - resource_node_id: ${{ github.event.issue.node_id }} - operation_mode: custom_field - custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]' - - - name: 'Move Related Issue to "🏗 PR Review"' - if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened') - uses: leonsteinhaeuser/project-beta-automations@v2.2.1 - with: - gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: Oztechan - project_id: 2 - resource_node_id: ${{ github.event.pull_request.node_id }} - status_value: "🏗 PR Review" - move_related_issues: true - - - name: 'Add Dependency PR by renovate to "🏗 PR Review"' - if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened') - uses: leonsteinhaeuser/project-beta-automations@v2.2.1 - with: - gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: Oztechan - project_id: 2 - resource_node_id: ${{ github.event.pull_request.node_id }} - operation_mode: custom_field - custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]' - - - name: 'Move Related Issue to "🚧 In Progress"' - if: github.event_name == 'pull_request' && github.event.action == 'converted_to_draft' - uses: leonsteinhaeuser/project-beta-automations@v2.2.1 - with: - gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: Oztechan - project_id: 2 - resource_node_id: ${{ github.event.pull_request.node_id }} - status_value: "🚧 In Progress" - move_related_issues: true - - - name: 'Move Related Issue to "✅ Done"' - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true - uses: leonsteinhaeuser/project-beta-automations@v2.2.1 - with: - gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - organization: Oztechan - project_id: 2 - resource_node_id: ${{ github.event.pull_request.node_id }} - status_value: "✅ Done" - move_related_issues: true + uses: Oztechan/Global/.github/workflows/project-reusable.yml@bf9138c8831500b721597822e6edf51b30423bf3 + with: + project_id: 2 + secrets: inherit From 900f0b021cdf681717e0720a39b43d3a72796094 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 16:58:44 +0100 Subject: [PATCH 12/96] [Oztechan/Global#12] Update gradle/gradle-build-action action to v2.10.0 (#2991) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- .github/workflows/main.yml | 6 +++--- .github/workflows/release.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29a529ca9e..338cceb170 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,7 +90,7 @@ jobs: distribution: 'temurin' - name: Assemble - uses: gradle/gradle-build-action@v2.9.0 + uses: gradle/gradle-build-action@v2.10.0 with: arguments: assemble @@ -257,7 +257,7 @@ jobs: distribution: 'temurin' - name: Run Quality Jobs - uses: gradle/gradle-build-action@v2.9.0 + uses: gradle/gradle-build-action@v2.10.0 with: arguments: check koverMergedXmlReport --parallel @@ -340,7 +340,7 @@ jobs: distribution: 'temurin' - name: Detekt - uses: gradle/gradle-build-action@v2.9.0 + uses: gradle/gradle-build-action@v2.10.0 with: arguments: detektAll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c93d885de1..c8065c4170 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: distribution: 'temurin' - name: Generate Artifacts - uses: gradle/gradle-build-action@v2.9.0 + uses: gradle/gradle-build-action@v2.10.0 with: arguments: :android:app:bundleRelease :backend:app:jar --parallel From 5dbf83bb2ebfb90ea64fa46b35b534460d80ae7b Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Sun, 3 Dec 2023 19:32:22 +0100 Subject: [PATCH 13/96] [Oztechan/Global#4] Global config update synced file(s) with Oztechan/Global (#2985) * [Oztechan/Global#4] Global config update synced local 'docs/' with remote 'docs/' * [Oztechan/Global#4] Global config update synced local 'docs/' with remote 'docs/' --- docs/CONTRIBUTING.md | 8 ++++---- docs/PULL_REQUEST_TEMPLATE.md | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index ded8af29cc..9280e45bfc 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -17,7 +17,7 @@ Every commit message should match the following format `[Oztechan/CCC#ISSUE_ID] Example: ``` -[Oztechan/Global#123] My cool feature +[Oztechan/CCC#ISSUE_ID] My cool feature ``` ## Pull Request @@ -33,17 +33,17 @@ Pull Request title should follow below format: Example: ``` -[Oztechan/Global#123] Whatever the name of ticket is +[Oztechan/CCC#ISSUE_ID] Whatever the name of ticket is ``` ### Description -Description has to have `Resloves Oztechan/CCC#ISSUE_ID` with relevant issue. It will help automatically close relevant issue once the PR is merged. +Description has to have `Resolves Oztechan/CCC#ISSUE_ID` with relevant issue. It will help automatically close relevant issue once the PR is merged. Example: ``` -Resolves Oztechan/Global#123 +Resolves Oztechan/CCC#123 Some description. ``` diff --git a/docs/PULL_REQUEST_TEMPLATE.md b/docs/PULL_REQUEST_TEMPLATE.md index 8c31f5e5b6..042b67d57c 100644 --- a/docs/PULL_REQUEST_TEMPLATE.md +++ b/docs/PULL_REQUEST_TEMPLATE.md @@ -1,9 +1,7 @@ -## Description - Resolves Oztechan/CCC#ISSUE_ID From c72d8ecad6d47192d7cfd71731df4ce680bd4032 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 00:01:43 +0200 Subject: [PATCH 93/96] [Oztechan/Global#12] Update Oztechan/Global digest to a3db254 (#3084) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mustafa Ozhan --- .github/workflows/project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 7df44a4c11..d9c305da44 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -14,7 +14,7 @@ on: jobs: ProjectAutomations: - uses: Oztechan/Global/.github/workflows/reusable-project.yml@cc2b2fb0d23b5603cbc12905919d650d6a9d5a77 + uses: Oztechan/Global/.github/workflows/reusable-project.yml@a3db254980b0b8f7931b1f591676a3a9473bfcfb with: project_id: 2 secrets: inherit From 3096c49a34b1891def4ae09636ed6b0b6d590282 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Thu, 18 Jan 2024 11:25:50 +0200 Subject: [PATCH 94/96] [Oztechan/CCC#2980] Fix iOS app crash due to unsafe url (#3088) --- ios/CCC/Resources/Info.plist | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/CCC/Resources/Info.plist b/ios/CCC/Resources/Info.plist index 37eba7d6f1..7dc6b7cd8c 100644 --- a/ios/CCC/Resources/Info.plist +++ b/ios/CCC/Resources/Info.plist @@ -2,6 +2,11 @@ + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + ITSAppUsesNonExemptEncryption BGTaskSchedulerPermittedIdentifiers From bcd88f52a6b91aad654031334dc11f0a7eae41b1 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Thu, 18 Jan 2024 11:26:13 +0200 Subject: [PATCH 95/96] [Oztechan/CCC#3086] At start-up replace the database entries if exist (#3091) --- .../ccc/common/core/database/sql/Currency.sq | 324 +++++++++--------- .../common/core/database/sql/migrations/1.sqm | 2 +- .../common/core/database/sql/migrations/3.sqm | 12 +- .../common/core/database/sql/migrations/5.sqm | 2 +- .../common/core/database/sql/migrations/6.sqm | 8 +- 5 files changed, 174 insertions(+), 174 deletions(-) diff --git a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/Currency.sq b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/Currency.sq index 772de8f361..4f3b76374a 100644 --- a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/Currency.sq +++ b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/Currency.sq @@ -6,168 +6,168 @@ CREATE TABLE IF NOT EXISTS Currency( isActive INTEGER NOT NULL DEFAULT 0 ); -INSERT INTO Currency VALUES ('AED', 'United Arab Emirates dirham', 'د.إ', 0.0, 0); -INSERT INTO Currency VALUES ('AFN', 'Afghan afghani', '؋', 0.0, 0); -INSERT INTO Currency VALUES ('ALL', 'Albanian lek', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('AMD', 'Armenian dram', '֏', 0.0, 0); -INSERT INTO Currency VALUES ('ANG', 'Netherlands Antillean guilder', 'NAƒ', 0.0, 0); -INSERT INTO Currency VALUES ('AOA', 'Angolan kwanza', 'Kz', 0.0, 0); -INSERT INTO Currency VALUES ('ARS', 'Argentine peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('AUD', 'Australian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('AWG', 'Aruban florin', 'Afl.', 0.0, 0); -INSERT INTO Currency VALUES ('AZN', 'Azerbaijani manat', '₼', 0.0, 0); -INSERT INTO Currency VALUES ('BAM', 'Bosnia-Herzegovina convertible marka', 'KM', 0.0, 0); -INSERT INTO Currency VALUES ('BBD', 'Barbadian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('BDT', 'Bangladeshi taka', '৳', 0.0, 0); -INSERT INTO Currency VALUES ('BGN', 'Bulgarian lev', 'лв.', 0.0, 0); -INSERT INTO Currency VALUES ('BHD', 'Bahraini dinar', '.د.ب', 0.0, 0); -INSERT INTO Currency VALUES ('BIF', 'Burundian franc', 'FBu', 0.0, 0); -INSERT INTO Currency VALUES ('BMD', 'Bermudian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('BND', 'Brunei dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('BOB', 'Bolivian boliviano', 'Bs', 0.0, 0); -INSERT INTO Currency VALUES ('BRL', 'Brazilian real', 'R$', 0.0, 0); -INSERT INTO Currency VALUES ('BSD', 'Bahamian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('BTN', 'Bhutanese ngultrum', 'Nu.', 0.0, 0); -INSERT INTO Currency VALUES ('BWP', 'Botswana pula', 'P', 0.0, 0); -INSERT INTO Currency VALUES ('BYN', 'Belarusian ruble', 'Br', 0.0, 0); -INSERT INTO Currency VALUES ('BZD', 'Belize dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CAD', 'Canadian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CDF', 'Congolese franc', 'FC', 0.0, 0); -INSERT INTO Currency VALUES ('CHF', 'Swiss franc', 'CHF', 0.0, 0); -INSERT INTO Currency VALUES ('CLP', 'Chilean peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CNY', 'Chinese Yuan Renminbi', '元', 0.0, 0); -INSERT INTO Currency VALUES ('COP', 'Colombian peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CRC', 'Costa Rican colón', '₡', 0.0, 0); -INSERT INTO Currency VALUES ('CUP', 'Cuban peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CVE', 'Cape Verdean escudo', '$', 0.0, 0); -INSERT INTO Currency VALUES ('CZK', 'Czech koruna', 'Kč', 0.0, 0); -INSERT INTO Currency VALUES ('DJF', 'Djiboutian franc', 'Fdj', 0.0, 0); -INSERT INTO Currency VALUES ('DKK', 'Danish krone', 'kr.', 0.0, 0); -INSERT INTO Currency VALUES ('DOP', 'Dominican peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('DZD', 'Algerian dinar', 'دج', 0.0, 0); -INSERT INTO Currency VALUES ('EGP', 'Egyptian pound', 'E£', 0.0, 0); -INSERT INTO Currency VALUES ('ERN', 'Eritrean nakfa', 'Nkf', 0.0, 0); -INSERT INTO Currency VALUES ('ETB', 'Ethiopian birr', 'Br', 0.0, 0); -INSERT INTO Currency VALUES ('EUR', 'Euro', '€', 0.0, 0); -INSERT INTO Currency VALUES ('FJD', 'Fijian dollar', 'FJ$', 0.0, 0); -INSERT INTO Currency VALUES ('FKP', 'Falkland Islands pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('FOK', 'Faroese Króna','kr', 0.0, 0); -INSERT INTO Currency VALUES ('GBP', 'Pound sterling', '£', 0.0, 0); -INSERT INTO Currency VALUES ('GEL', 'Georgian lari', '₾', 0.0, 0); -INSERT INTO Currency VALUES ('GGP', 'Guernsey pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('GHS', 'Ghanaian cedi', 'GH₵', 0.0, 0); -INSERT INTO Currency VALUES ('GIP', 'Gibraltar pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('GMD', 'Gambian dalasi', 'D', 0.0, 0); -INSERT INTO Currency VALUES ('GNF', 'Guinean franc', 'FG', 0.0, 0); -INSERT INTO Currency VALUES ('GTQ', 'Guatemalan quetzal', 'Q', 0.0, 0); -INSERT INTO Currency VALUES ('GYD', 'Guyanese dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('HKD', 'Hong Kong dollar', 'HK$', 0.0, 0); -INSERT INTO Currency VALUES ('HNL', 'Honduran lempira', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('HRK', 'Croatian kuna', 'kn', 0.0, 0); -INSERT INTO Currency VALUES ('HTG', 'Haitian gourde', 'G', 0.0, 0); -INSERT INTO Currency VALUES ('HUF', 'Hungarian forint', 'Ft', 0.0, 0); -INSERT INTO Currency VALUES ('IDR', 'Indonesian rupiah', 'Rp', 0.0, 0); -INSERT INTO Currency VALUES ('ILS', 'Israeli new shekel', '₪', 0.0, 0); -INSERT INTO Currency VALUES ('IMP', 'Manx pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('INR', 'Indian rupee', '₹', 0.0, 0); -INSERT INTO Currency VALUES ('IQD', 'Iraqi dinar', 'د.ع', 0.0, 0); -INSERT INTO Currency VALUES ('IRR', 'Iranian rial', '﷼', 0.0, 0); -INSERT INTO Currency VALUES ('ISK', 'Icelandic króna', 'kr', 0.0, 0); -INSERT INTO Currency VALUES ('JEP', 'Jersey pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('JMD', 'Jamaican dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('JOD', 'Jordanian dinar', 'د.أ', 0.0, 0); -INSERT INTO Currency VALUES ('JPY', 'Japanese yen', '¥', 0.0, 0); -INSERT INTO Currency VALUES ('KES', 'Kenyan shilling', 'KSh', 0.0, 0); -INSERT INTO Currency VALUES ('KGS', 'Kyrgyzstani som', 'С̲', 0.0, 0); -INSERT INTO Currency VALUES ('KHR', 'Cambodian riel', '៛', 0.0, 0); -INSERT INTO Currency VALUES ('KID', 'Kiribati Dollar','$', 0.0, 0); -INSERT INTO Currency VALUES ('KMF', 'Comorian franc', 'CF', 0.0, 0); -INSERT INTO Currency VALUES ('KRW', 'South Korean won', '₩', 0.0, 0); -INSERT INTO Currency VALUES ('KWD', 'Kuwaiti dinar', 'د.ك', 0.0, 0); -INSERT INTO Currency VALUES ('KYD', 'Cayman Islands dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('KZT', 'Kazakhstani tenge', '₸', 0.0, 0); -INSERT INTO Currency VALUES ('LAK', 'Lao kip', '₭', 0.0, 0); -INSERT INTO Currency VALUES ('LBP', 'Lebanese pound', 'ل.ل.', 0.0, 0); -INSERT INTO Currency VALUES ('LKR', 'Sri Lankan rupee', 'Rs', 0.0, 0); -INSERT INTO Currency VALUES ('LRD', 'Liberian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('LSL', 'Lesotho loti', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('LYD', 'Libyan dinar', 'ل.د', 0.0, 0); -INSERT INTO Currency VALUES ('MAD', 'Moroccan dirham', 'DH', 0.0, 0); -INSERT INTO Currency VALUES ('MDL', 'Moldovan leu', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('MGA', 'Malagasy ariary', 'Ar', 0.0, 0); -INSERT INTO Currency VALUES ('MKD', 'Macedonian denar', 'ден', 0.0, 0); -INSERT INTO Currency VALUES ('MMK', 'Burmese kyat', 'K', 0.0, 0); -INSERT INTO Currency VALUES ('MNT', 'Mongolian tögrög', '₮', 0.0, 0); -INSERT INTO Currency VALUES ('MOP', 'Macanese pataca', 'MOP$', 0.0, 0); -INSERT INTO Currency VALUES ('MRU', 'Mauritanian ouguiya', 'UM', 0.0, 0); -INSERT INTO Currency VALUES ('MUR', 'Mauritian rupee', '₨', 0.0, 0); -INSERT INTO Currency VALUES ('MVR', 'Maldivian rufiyaa', 'ރ', 0.0, 0); -INSERT INTO Currency VALUES ('MWK', 'Malawian kwacha', 'MK', 0.0, 0); -INSERT INTO Currency VALUES ('MXN', 'Mexican peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('MYR', 'Malaysian ringgit', 'RM', 0.0, 0); -INSERT INTO Currency VALUES ('MZN', 'Mozambican metical', 'MT', 0.0, 0); -INSERT INTO Currency VALUES ('NAD', 'Namibian dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('NGN', 'Nigerian naira', '₦', 0.0, 0); -INSERT INTO Currency VALUES ('NIO', 'Nicaraguan córdoba', 'C$', 0.0, 0); -INSERT INTO Currency VALUES ('NOK', 'Norwegian krone', 'kr', 0.0, 0); -INSERT INTO Currency VALUES ('NPR', 'Nepalese rupee', '₨', 0.0, 0); -INSERT INTO Currency VALUES ('NZD', 'New Zealand dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('OMR', 'Omani rial', 'ر.ع.', 0.0, 0); -INSERT INTO Currency VALUES ('PAB', 'Panamanian balboa', 'B/.', 0.0, 0); -INSERT INTO Currency VALUES ('PEN', 'Peruvian sol', 'S/', 0.0, 0); -INSERT INTO Currency VALUES ('PGK', 'Papua New Guinean kina', 'K', 0.0, 0); -INSERT INTO Currency VALUES ('PHP', 'Philippine peso', '₱', 0.0, 0); -INSERT INTO Currency VALUES ('PKR', 'Pakistani rupee', '₨', 0.0, 0); -INSERT INTO Currency VALUES ('PLN', 'Polish złoty', 'zł', 0.0, 0); -INSERT INTO Currency VALUES ('PYG', 'Paraguayan guaraní', '₲', 0.0, 0); -INSERT INTO Currency VALUES ('QAR', 'Qatari riyal', 'QR', 0.0, 0); -INSERT INTO Currency VALUES ('RON', 'Romanian leu', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('RSD', 'Serbian dinar', 'дин', 0.0, 0); -INSERT INTO Currency VALUES ('RUB', 'Russian ruble', '₽', 0.0, 0); -INSERT INTO Currency VALUES ('RWF', 'Rwandan franc', 'FRw', 0.0, 0); -INSERT INTO Currency VALUES ('SAR', 'Saudi riyal', 'ر.س', 0.0, 0); -INSERT INTO Currency VALUES ('SBD', 'Solomon Islands dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('SCR', 'Seychellois rupee', 'SR', 0.0, 0); -INSERT INTO Currency VALUES ('SDG', 'Sudanese pound', 'ج.س.', 0.0, 0); -INSERT INTO Currency VALUES ('SEK', 'Swedish krona', 'kr', 0.0, 0); -INSERT INTO Currency VALUES ('SGD', 'Singapore dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('SHP', 'Saint Helena pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('SLE', 'Sierra Leonean Leone','Le', 0.0, 0); -INSERT INTO Currency VALUES ('SLL', 'Sierra Leonean Leone (2022)', 'Le', 0.0, 0); -INSERT INTO Currency VALUES ('SOS', 'Somali shilling', 'Sh.So', 0.0, 0); -INSERT INTO Currency VALUES ('SRD', 'Surinamese dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('SSP', 'South Sudanese pound', '£', 0.0, 0); -INSERT INTO Currency VALUES ('STN', 'São Tomé and Príncipe dobra', 'Db', 0.0, 0); -INSERT INTO Currency VALUES ('SYP', 'Syrian pound', 'LS', 0.0, 0); -INSERT INTO Currency VALUES ('SZL', 'Swazi lilangeni', 'L', 0.0, 0); -INSERT INTO Currency VALUES ('THB', 'Thai baht', '฿', 0.0, 0); -INSERT INTO Currency VALUES ('TJS', 'Tajikistani somoni', 'SM', 0.0, 0); -INSERT INTO Currency VALUES ('TMT', 'Turkmenistan manat', 'T', 0.0, 0); -INSERT INTO Currency VALUES ('TND', 'Tunisian dinar', 'د.ت', 0.0, 0); -INSERT INTO Currency VALUES ('TOP', 'Tongan paʻanga', 'T$', 0.0, 0); -INSERT INTO Currency VALUES ('TRY', 'Turkish lira', '₺', 0.0, 0); -INSERT INTO Currency VALUES ('TTD', 'Trinidad and Tobago dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); -INSERT INTO Currency VALUES ('TWD', 'New Taiwan dollar', 'NT$', 0.0, 0); -INSERT INTO Currency VALUES ('TZS', 'Tanzanian shilling', 'TSh', 0.0, 0); -INSERT INTO Currency VALUES ('UAH', 'Ukrainian hryvnia', '₴', 0.0, 0); -INSERT INTO Currency VALUES ('UGX', 'Ugandan shilling', 'USh', 0.0, 0); -INSERT INTO Currency VALUES ('USD', 'United States dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('UYU', 'Uruguayan peso', '$', 0.0, 0); -INSERT INTO Currency VALUES ('UZS', 'Uzbekistani soʻm', 'сўм', 0.0, 0); -INSERT INTO Currency VALUES ('VES', 'Venezuelan bolívar soberano', 'Bs.S', 0.0, 0); -INSERT INTO Currency VALUES ('VND', 'Vietnamese đồng', '₫', 0.0, 0); -INSERT INTO Currency VALUES ('VUV', 'Vanuatu vatu', 'VT', 0.0, 0); -INSERT INTO Currency VALUES ('WST', 'Samoan tālā', 'SAT', 0.0, 0); -INSERT INTO Currency VALUES ('XAF', 'Central African CFA franc', 'FCFA', 0.0, 0); -INSERT INTO Currency VALUES ('XCD', 'Eastern Caribbean dollar', '$', 0.0, 0); -INSERT INTO Currency VALUES ('XDR', 'IMF Special drawing rights', 'SDR', 0.0, 0); -INSERT INTO Currency VALUES ('XOF', 'West African CFA franc', 'CFA', 0.0, 0); -INSERT INTO Currency VALUES ('XPF', 'CFP franc', 'F', 0.0, 0); -INSERT INTO Currency VALUES ('YER', 'Yemeni rial', '﷼', 0.0, 0); -INSERT INTO Currency VALUES ('ZAR', 'South African rand', 'R', 0.0, 0); -INSERT INTO Currency VALUES ('ZMW', 'Zambian kwacha', 'K', 0.0, 0); -INSERT INTO Currency VALUES ('ZWL', 'Zimbabwean dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AED', 'United Arab Emirates dirham', 'د.إ', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AFN', 'Afghan afghani', '؋', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ALL', 'Albanian lek', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AMD', 'Armenian dram', '֏', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ANG', 'Netherlands Antillean guilder', 'NAƒ', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AOA', 'Angolan kwanza', 'Kz', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ARS', 'Argentine peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AUD', 'Australian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AWG', 'Aruban florin', 'Afl.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('AZN', 'Azerbaijani manat', '₼', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BAM', 'Bosnia-Herzegovina convertible marka', 'KM', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BBD', 'Barbadian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BDT', 'Bangladeshi taka', '৳', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BGN', 'Bulgarian lev', 'лв.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BHD', 'Bahraini dinar', '.د.ب', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BIF', 'Burundian franc', 'FBu', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BMD', 'Bermudian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BND', 'Brunei dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BOB', 'Bolivian boliviano', 'Bs', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BRL', 'Brazilian real', 'R$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BSD', 'Bahamian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BTN', 'Bhutanese ngultrum', 'Nu.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BWP', 'Botswana pula', 'P', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BYN', 'Belarusian ruble', 'Br', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('BZD', 'Belize dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CAD', 'Canadian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CDF', 'Congolese franc', 'FC', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CHF', 'Swiss franc', 'CHF', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CLP', 'Chilean peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CNY', 'Chinese Yuan Renminbi', '元', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('COP', 'Colombian peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CRC', 'Costa Rican colón', '₡', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CUP', 'Cuban peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CVE', 'Cape Verdean escudo', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('CZK', 'Czech koruna', 'Kč', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('DJF', 'Djiboutian franc', 'Fdj', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('DKK', 'Danish krone', 'kr.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('DOP', 'Dominican peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('DZD', 'Algerian dinar', 'دج', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('EGP', 'Egyptian pound', 'E£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ERN', 'Eritrean nakfa', 'Nkf', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ETB', 'Ethiopian birr', 'Br', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('EUR', 'Euro', '€', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('FJD', 'Fijian dollar', 'FJ$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('FKP', 'Falkland Islands pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('FOK', 'Faroese Króna','kr', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GBP', 'Pound sterling', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GEL', 'Georgian lari', '₾', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GGP', 'Guernsey pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GHS', 'Ghanaian cedi', 'GH₵', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GIP', 'Gibraltar pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GMD', 'Gambian dalasi', 'D', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GNF', 'Guinean franc', 'FG', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GTQ', 'Guatemalan quetzal', 'Q', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('GYD', 'Guyanese dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('HKD', 'Hong Kong dollar', 'HK$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('HNL', 'Honduran lempira', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('HRK', 'Croatian kuna', 'kn', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('HTG', 'Haitian gourde', 'G', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('HUF', 'Hungarian forint', 'Ft', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('IDR', 'Indonesian rupiah', 'Rp', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ILS', 'Israeli new shekel', '₪', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('IMP', 'Manx pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('INR', 'Indian rupee', '₹', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('IQD', 'Iraqi dinar', 'د.ع', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('IRR', 'Iranian rial', '﷼', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ISK', 'Icelandic króna', 'kr', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('JEP', 'Jersey pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('JMD', 'Jamaican dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('JOD', 'Jordanian dinar', 'د.أ', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('JPY', 'Japanese yen', '¥', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KES', 'Kenyan shilling', 'KSh', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KGS', 'Kyrgyzstani som', 'С̲', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KHR', 'Cambodian riel', '៛', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KID', 'Kiribati Dollar','$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KMF', 'Comorian franc', 'CF', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KRW', 'South Korean won', '₩', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KWD', 'Kuwaiti dinar', 'د.ك', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KYD', 'Cayman Islands dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('KZT', 'Kazakhstani tenge', '₸', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LAK', 'Lao kip', '₭', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LBP', 'Lebanese pound', 'ل.ل.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LKR', 'Sri Lankan rupee', 'Rs', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LRD', 'Liberian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LSL', 'Lesotho loti', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('LYD', 'Libyan dinar', 'ل.د', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MAD', 'Moroccan dirham', 'DH', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MDL', 'Moldovan leu', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MGA', 'Malagasy ariary', 'Ar', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MKD', 'Macedonian denar', 'ден', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MMK', 'Burmese kyat', 'K', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MNT', 'Mongolian tögrög', '₮', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MOP', 'Macanese pataca', 'MOP$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MRU', 'Mauritanian ouguiya', 'UM', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MUR', 'Mauritian rupee', '₨', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MVR', 'Maldivian rufiyaa', 'ރ', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MWK', 'Malawian kwacha', 'MK', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MXN', 'Mexican peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MYR', 'Malaysian ringgit', 'RM', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('MZN', 'Mozambican metical', 'MT', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NAD', 'Namibian dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NGN', 'Nigerian naira', '₦', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NIO', 'Nicaraguan córdoba', 'C$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NOK', 'Norwegian krone', 'kr', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NPR', 'Nepalese rupee', '₨', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('NZD', 'New Zealand dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('OMR', 'Omani rial', 'ر.ع.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PAB', 'Panamanian balboa', 'B/.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PEN', 'Peruvian sol', 'S/', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PGK', 'Papua New Guinean kina', 'K', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PHP', 'Philippine peso', '₱', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PKR', 'Pakistani rupee', '₨', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PLN', 'Polish złoty', 'zł', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('PYG', 'Paraguayan guaraní', '₲', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('QAR', 'Qatari riyal', 'QR', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('RON', 'Romanian leu', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('RSD', 'Serbian dinar', 'дин', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('RUB', 'Russian ruble', '₽', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('RWF', 'Rwandan franc', 'FRw', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SAR', 'Saudi riyal', 'ر.س', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SBD', 'Solomon Islands dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SCR', 'Seychellois rupee', 'SR', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SDG', 'Sudanese pound', 'ج.س.', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SEK', 'Swedish krona', 'kr', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SGD', 'Singapore dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SHP', 'Saint Helena pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SLE', 'Sierra Leonean Leone','Le', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SLL', 'Sierra Leonean Leone (2022)', 'Le', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SOS', 'Somali shilling', 'Sh.So', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SRD', 'Surinamese dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SSP', 'South Sudanese pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('STN', 'São Tomé and Príncipe dobra', 'Db', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SYP', 'Syrian pound', 'LS', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('SZL', 'Swazi lilangeni', 'L', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('THB', 'Thai baht', '฿', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TJS', 'Tajikistani somoni', 'SM', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TMT', 'Turkmenistan manat', 'T', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TND', 'Tunisian dinar', 'د.ت', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TOP', 'Tongan paʻanga', 'T$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TRY', 'Turkish lira', '₺', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TTD', 'Trinidad and Tobago dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TWD', 'New Taiwan dollar', 'NT$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('TZS', 'Tanzanian shilling', 'TSh', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('UAH', 'Ukrainian hryvnia', '₴', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('UGX', 'Ugandan shilling', 'USh', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('USD', 'United States dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('UYU', 'Uruguayan peso', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('UZS', 'Uzbekistani soʻm', 'сўм', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('VES', 'Venezuelan bolívar soberano', 'Bs.S', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('VND', 'Vietnamese đồng', '₫', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('VUV', 'Vanuatu vatu', 'VT', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('WST', 'Samoan tālā', 'SAT', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('XAF', 'Central African CFA franc', 'FCFA', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('XCD', 'Eastern Caribbean dollar', '$', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('XDR', 'IMF Special drawing rights', 'SDR', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('XOF', 'West African CFA franc', 'CFA', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('XPF', 'CFP franc', 'F', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('YER', 'Yemeni rial', '﷼', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ZAR', 'South African rand', 'R', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ZMW', 'Zambian kwacha', 'K', 0.0, 0); +INSERT OR REPLACE INTO Currency VALUES ('ZWL', 'Zimbabwean dollar', '$', 0.0, 0); getCurrencies: SELECT * FROM Currency; diff --git a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/1.sqm b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/1.sqm index 4415dc8e98..7b4e144943 100644 --- a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/1.sqm +++ b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/1.sqm @@ -1,2 +1,2 @@ -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('VES', 'Venezuelan bolívar soberano', 'Bs.', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('VES', 'Venezuelan bolívar soberano', 'Bs.', 0.0, 0); ALTER TABLE Offline_Rates ADD COLUMN VES REAL DEFAULT 0.0; diff --git a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/3.sqm b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/3.sqm index f67182f9f3..287edae931 100644 --- a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/3.sqm +++ b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/3.sqm @@ -1,9 +1,9 @@ -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('CNH', 'Offshore Renminbi','¥', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('MRU', 'Mauritanian ouguiya', 'UM', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('SSP', 'South Sudanese pound', '£', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('STN', 'São Tomé and Príncipe dobra','Db', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('XPD', 'Palladium ounce','oz', 0.0, 0); -INSERT INTO Currency (name, longName, symbol, rate, isActive) VALUES ('XPT', 'Platinum ounce','oz', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('CNH', 'Offshore Renminbi','¥', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('MRU', 'Mauritanian ouguiya', 'UM', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('SSP', 'South Sudanese pound', '£', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('STN', 'São Tomé and Príncipe dobra','Db', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('XPD', 'Palladium ounce','oz', 0.0, 0); +INSERT OR REPLACE INTO Currency (name, longName, symbol, rate, isActive) VALUES ('XPT', 'Platinum ounce','oz', 0.0, 0); DELETE FROM Currency WHERE name='BYR'; DELETE FROM Currency WHERE name='LTL'; DELETE FROM Currency WHERE name='LVL'; diff --git a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/5.sqm b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/5.sqm index 845170f397..bacaa68d67 100644 --- a/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/5.sqm +++ b/common/core/database/src/commonMain/sql/com/oztechan/ccc/common/core/database/sql/migrations/5.sqm @@ -8,7 +8,7 @@ CREATE TABLE CurrencyTemp( isActive INTEGER NOT NULL DEFAULT 0 ); -INSERT INTO CurrencyTemp(code, name, symbol, rate, isActive) +INSERT OR REPLACE INTO CurrencyTemp(code, name, symbol, rate, isActive) SELECT name, longName, symbol, rate, isActive FROM Currency; 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 59d1da390b..ad85bf63fa 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 @@ -16,8 +16,8 @@ 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); +INSERT OR REPLACE INTO Currency (code, name, symbol, rate, isActive) VALUES ('FOK', 'Faroese Króna','kr', 0.0, 0); +INSERT OR REPLACE INTO Currency (code, name, symbol, rate, isActive) VALUES ('KID', 'Kiribati Dollar','$', 0.0, 0); +INSERT OR REPLACE 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 (code, name, symbol, rate, isActive) VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); \ No newline at end of file +INSERT OR REPLACE INTO Currency (code, name, symbol, rate, isActive) VALUES ('TVD', 'Tuvaluan dollar','$', 0.0, 0); \ No newline at end of file From 2ebef113ac0364c2c10c4513ed858eb578356427 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Thu, 18 Jan 2024 12:38:08 +0200 Subject: [PATCH 96/96] [Oztechan/CCC#3087] Move JVM Database to disk (#3092) --- .../ccc/common/core/database/di/CommonCoreDatabaseModule.jvm.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/core/database/src/jvmMain/kotlin/com/oztechan/ccc/common/core/database/di/CommonCoreDatabaseModule.jvm.kt b/common/core/database/src/jvmMain/kotlin/com/oztechan/ccc/common/core/database/di/CommonCoreDatabaseModule.jvm.kt index ec6908d688..a2fdcd0137 100644 --- a/common/core/database/src/jvmMain/kotlin/com/oztechan/ccc/common/core/database/di/CommonCoreDatabaseModule.jvm.kt +++ b/common/core/database/src/jvmMain/kotlin/com/oztechan/ccc/common/core/database/di/CommonCoreDatabaseModule.jvm.kt @@ -5,6 +5,6 @@ import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver import org.koin.core.scope.Scope actual fun Scope.provideDatabase(databaseName: String) = CurrencyConverterCalculatorDatabase( - JdbcSqliteDriver(JdbcSqliteDriver.IN_MEMORY) + JdbcSqliteDriver("jdbc:sqlite:$databaseName.db") .also { CurrencyConverterCalculatorDatabase.Schema.create(it) } )