-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1170 from GiganticMinecraft/develop
バージョン 15 リリース
- Loading branch information
Showing
59 changed files
with
1,317 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.4.9 | ||
sbt.version=1.5.5 |
23 changes: 23 additions & 0 deletions
23
src/main/resources/db/migration/V1.7.2__Widen_present_id.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use seichiassist; | ||
|
||
-- このマイグレーションが走る時点ではpresentシステムが正常に動作しておらず、 | ||
-- データが入っていないため問題なし | ||
-- foreign key制約によってalter table出来なかったため作り直している | ||
DROP TABLE present_state; | ||
DROP TABLE present; | ||
|
||
-- プレゼントIDと実体の対応付け | ||
CREATE TABLE IF NOT EXISTS present( | ||
present_id bigint PRIMARY KEY auto_increment, | ||
itemstack blob NOT NULL | ||
); | ||
|
||
-- プレイヤーがプレゼントを受け取ったかどうかをモデリングする | ||
CREATE TABLE IF NOT EXISTS present_state( | ||
present_id bigint NOT NULL, | ||
uuid char(36) NOT NULL, | ||
claimed boolean NOT NULL, | ||
|
||
PRIMARY KEY(present_id, uuid), | ||
FOREIGN KEY present_id_in_present_state_must_exist_in_presents_table(present_id) REFERENCES present(present_id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/scala/com/github/unchama/contextualexecutor/executors/TraverseExecutor.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.github.unchama.contextualexecutor.executors | ||
|
||
import cats.effect.IO | ||
import com.github.unchama.contextualexecutor.{ContextualExecutor, RawCommandContext} | ||
|
||
case class TraverseExecutor(executors: List[ContextualExecutor]) extends ContextualExecutor { | ||
import cats.implicits._ | ||
|
||
override def executeWith(commandContext: RawCommandContext): IO[Unit] = { | ||
executors.traverse(_.executeWith(commandContext)).void | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.