From b5a85c903263dae4133c0eefde01bd8630ccf46d Mon Sep 17 00:00:00 2001 From: Philip Wedemann <22521688+hfhbd@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:49:12 +0200 Subject: [PATCH] Fix overwriting migration file named 0 --- core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt index 1021d607..aa402024 100644 --- a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt +++ b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlFileBase.kt @@ -129,7 +129,7 @@ abstract class SqlFileBase( } baseContributorFile()?.contributors()?.let { contributors -> - orderedContributors[0] = linkedSetOf(*contributors.toTypedArray()) + orderedContributors[-1] = linkedSetOf(elements = contributors.toTypedArray()) } orderedContributors.forEach { (_, contributors) ->