diff --git a/scripts/mariadb/gamemode.sql b/scripts/mariadb/gamemode.sql index 1eb69c0d..b32c4615 100644 --- a/scripts/mariadb/gamemode.sql +++ b/scripts/mariadb/gamemode.sql @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS players ( returned_flags int(11) NOT NULL CHECK(returned_flags >= 0), head_shots int(11) NOT NULL CHECK(head_shots >= 0), role_id enum('Basic','VIP','Moderator','Admin') NOT NULL, - skin_id int(11) NOT NULL CHECK(skin_id >= 0 AND skin_id <= 311), + skin_id int(11) NOT NULL CHECK(skin_id >= -1 AND skin_id <= 311), rank_id int(11) NOT NULL CHECK(rank_id >= 0 AND rank_id <= 14), created_at datetime NOT NULL, last_connection datetime NOT NULL, diff --git a/scripts/sqlite/gamemode.sql b/scripts/sqlite/gamemode.sql index 2d11f4e9..7fb576e8 100644 --- a/scripts/sqlite/gamemode.sql +++ b/scripts/sqlite/gamemode.sql @@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS players ( returned_flags INTEGER NOT NULL CHECK(returned_flags >= 0), head_shots INTEGER NOT NULL CHECK(head_shots >= 0), role_id INTEGER NOT NULL CHECK(role_id >= 0 AND role_id <= 3), - skin_id INTEGER NOT NULL CHECK(skin_id >= 0 AND skin_id <= 311), + skin_id INTEGER NOT NULL CHECK(skin_id >= -1 AND skin_id <= 311), rank_id INTEGER NOT NULL CHECK(rank_id >= 0 AND rank_id <= 14), created_at TEXT NOT NULL, last_connection TEXT NOT NULL, diff --git a/tests/Persistence.Tests/Players/Create.cs b/tests/Persistence.Tests/Players/Create.cs index e086f239..f727adbd 100644 --- a/tests/Persistence.Tests/Players/Create.cs +++ b/tests/Persistence.Tests/Players/Create.cs @@ -12,7 +12,6 @@ public void Create_WhenCalled_ShouldCreatePlayerAndSetAccountId(IRepositoryManag var playerInfo = new PlayerInfo(); playerInfo.SetName("Player1"); playerInfo.SetPassword("DSR8887$#"); - playerInfo.SetSkin(146); // Act playerRepository.Create(playerInfo);