Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eat My Dust support #12

Merged
merged 7 commits into from
Dec 29, 2024
Merged

Eat My Dust support #12

merged 7 commits into from
Dec 29, 2024

Conversation

Hipposgrumm
Copy link
Contributor

@Hipposgrumm Hipposgrumm commented Dec 3, 2024

DB MODEL CHANGES! I don't know how to deal with those.
Support for EMD's MMO rooms and API token.
Groundwork for group/clan system (hence schema changes).
Only functional for EMD right now (if I implemented it correctly).

Hopefully nothing broke and hopefully databases can be migrated just fine (I just don't know how).
I think it's just adding Group and GroupViking tables with their associated links.

Hipposgrumm and others added 7 commits December 2, 2024 22:52
DB MODEL CHANGES! I don't know how to deal with those.
Support for EMD's MMO rooms and API token.
Groundwork for group/clan system (hence schema changes). Only functional for EMD right now (if I implemented it correctly).
@rpaciorek
Copy link
Contributor

this required to create two new tables in database - for sqlite:

CREATE TABLE "GroupViking" (
    "GroupsId" INTEGER NOT NULL,
    "VikingsId" INTEGER NOT NULL,
    CONSTRAINT "PK_GroupViking" PRIMARY KEY ("GroupsId", "VikingsId"),
    CONSTRAINT "FK_GroupViking_Groups_GroupsId" FOREIGN KEY ("GroupsId") REFERENCES "Groups" ("Id") ON DELETE CASCADE,
    CONSTRAINT "FK_GroupViking_Vikings_VikingsId" FOREIGN KEY ("VikingsId") REFERENCES "Vikings" ("Id") ON DELETE CASCADE
);
CREATE TABLE "Groups" (
    "Id" INTEGER NOT NULL CONSTRAINT "PK_Groups" PRIMARY KEY AUTOINCREMENT,
    "GroupID" TEXT NOT NULL,
    "Name" TEXT NOT NULL,
    "Type" INTEGER NOT NULL,
    "Color" TEXT NOT NULL,
    "Logo" TEXT NOT NULL,
    "ApiKey" TEXT NOT NULL
);

@rpaciorek rpaciorek merged commit 4b6f782 into SoDOff-Project:master Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants