Skip to content

Commit 4e69060

Browse files
authored
Merge pull request #39 from icefoganalytics/main
Updates from IceFog
2 parents 158922d + 43a6234 commit 4e69060

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main, uat]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: false
10+
711
env:
812
REGISTRY: ghcr.io
913

api/src/db/migrations/2025.12.29T00.00.01.fix-fiscal-periods-unique-index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
import { type Migration } from "@/db/umzug"
22

33
export async function up({ context: queryInterface }: Migration) {
4-
await queryInterface.removeIndex("fiscal_periods", "fiscal_periods_fiscal_year_month_unique")
4+
try {
5+
await queryInterface.removeIndex("fiscal_periods", "fiscal_periods_fiscal_year_month_unique")
6+
} catch (error) {
7+
console.debug(
8+
`Aligning production and development environments: fiscal_periods_fiscal_year_month_unique index does not exist: ${error}`,
9+
{ error }
10+
)
11+
}
12+
13+
try {
14+
await queryInterface.removeIndex("fiscal_periods", "fiscal_periods_fiscal_year_month")
15+
} catch (error) {
16+
console.debug(
17+
`Aligning production and development environments: fiscal_periods_fiscal_year_month index does not exist: ${error}`,
18+
{ error }
19+
)
20+
}
521

622
await queryInterface.addIndex("fiscal_periods", ["fiscal_year", "month"], {
723
name: "fiscal_periods_fiscal_year_month_unique",

0 commit comments

Comments
 (0)