-
Notifications
You must be signed in to change notification settings - Fork 53
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 #586 from RyanYappert/feat/clans-cleaned
Feature: Clans
- Loading branch information
Showing
139 changed files
with
4,596 additions
and
332 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
38 changes: 38 additions & 0 deletions
38
Arrowgene.Ddon.Database/Files/Database/Script/clan_migration.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,38 @@ | ||
CREATE TABLE "ddon_clan_param" | ||
( | ||
"clan_id" INTEGER PRIMARY KEY NOT NULL, | ||
"clan_level" INTEGER NOT NULL, | ||
"member_num" INTEGER NOT NULL, | ||
"master_id" INTEGER NOT NULL, | ||
"system_restriction" BOOLEAN NOT NULL, | ||
"is_base_release" BOOLEAN NOT NULL, | ||
"can_base_release" BOOLEAN NOT NULL, | ||
"total_clan_point" INTEGER NOT NULL, | ||
"money_clan_point" INTEGER NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"short_name" TEXT NOT NULL, | ||
"emblem_mark_type" SMALLINT NOT NULL, | ||
"emblem_base_type" SMALLINT NOT NULL, | ||
"emblem_main_color" SMALLINT NOT NULL, | ||
"emblem_sub_color" SMALLINT NOT NULL, | ||
"motto" INTEGER NOT NULL, | ||
"active_days" INTEGER NOT NULL, | ||
"active_time" INTEGER NOT NULL, | ||
"characteristic" INTEGER NOT NULL, | ||
"is_publish" BOOLEAN NOT NULL, | ||
"comment" TEXT NOT NULL, | ||
"board_message" TEXT NOT NULL, | ||
"created" DATETIME NOT NULL | ||
); | ||
|
||
CREATE TABLE "ddon_clan_membership" | ||
( | ||
"character_id" INTEGER NOT NULL, | ||
"clan_id" INTEGER NOT NULL, | ||
"rank" INTEGER NOT NULL, | ||
"permission" INTEGER NOT NULL, | ||
"created" DATETIME NOT NULL, | ||
CONSTRAINT "pk_ddon_clan_membership" PRIMARY KEY ("character_id", "clan_id"), | ||
CONSTRAINT "fk_ddon_clan_membership_character_id" FOREIGN KEY ("character_id") REFERENCES "ddon_character" ("character_id") ON DELETE CASCADE, | ||
CONSTRAINT "fk_ddon_clan_membership_clan_id" FOREIGN KEY ("clan_id") REFERENCES "ddon_clan_param" ("clan_id") ON DELETE CASCADE | ||
); |
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.