Skip to content

Commit

Permalink
fix: db integer being to small
Browse files Browse the repository at this point in the history
  • Loading branch information
Boegie19 authored and ResuBaka committed Feb 22, 2025
1 parent 0afe8a3 commit cfbbd5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust/api-server/api/src/claims/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use axum::extract::{Path, Query, State};
use axum::http::StatusCode;
use axum::routing::get;
use axum::{Json, Router};
use entity::claim_description_state::{Member, Model};
use entity::claim_description_state::Model;
use entity::inventory::{ExpendedRefrence, ItemExpended};
use entity::{
building_state, cargo_desc, claim_description_state, claim_tech_desc, inventory, item_desc,
Expand Down
16 changes: 12 additions & 4 deletions rust/api-server/migration/src/m20250221_220058_player_to_claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ impl MigrationTrait for Migration {
Table::create()
.table(PlayerToClaim::Table)
.if_not_exists()
.col(ColumnDef::new(PlayerToClaim::PlayerId).integer().not_null())
.col(ColumnDef::new(PlayerToClaim::ClaimId).integer().not_null())
.col(
ColumnDef::new(PlayerToClaim::PlayerId)
.big_integer()
.not_null(),
)
.col(
ColumnDef::new(PlayerToClaim::ClaimId)
.big_integer()
.not_null(),
)
.col(
ColumnDef::new(PlayerToClaim::InventoryPermission)
.boolean()
Expand All @@ -29,7 +37,7 @@ impl MigrationTrait for Migration {
.not_null(),
)
.col(
ColumnDef::new(PlayerToClaim::CoOwnerPermissioN)
ColumnDef::new(PlayerToClaim::CoOwnerPermission)
.boolean()
.not_null(),
)
Expand Down Expand Up @@ -82,5 +90,5 @@ enum PlayerToClaim {
InventoryPermission,
BuildPermission,
OfficerPermission,
CoOwnerPermissioN,
CoOwnerPermission,
}

0 comments on commit cfbbd5d

Please sign in to comment.