Skip to content

Commit

Permalink
Fix entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjyhy committed Nov 21, 2024
1 parent a6ae27b commit 5c3635d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion server/entities/phaseHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { VillagePhase } from './village';
import { Village } from './village';

@Entity()
@Index(['village', 'phase'], { unique: true })
@Index('IDX_PHASE_HISTORY', ['village', 'phase'], { unique: true })
export class PhaseHistory {
@PrimaryGeneratedColumn()
public id: number;
Expand Down
3 changes: 0 additions & 3 deletions server/migrations/1731486908522-AddPhaseHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ export class AddPhaseHistory1731486908522 implements MigrationInterface {
{
name: 'startingOn',
type: 'datetime',
precision: 6,
default: 'CURRENT_TIMESTAMP(6)',
},
{
name: 'endingOn',
type: 'datetime',
precision: 6,
isNullable: true,
},
],
Expand Down

0 comments on commit 5c3635d

Please sign in to comment.