Make NoteEdit entity match the database schema
This commit is contained in:
@@ -26,11 +26,6 @@ export class NoteEdit {
|
||||
@JoinColumn()
|
||||
public note: MiNote | null;
|
||||
|
||||
@Column('text', {
|
||||
nullable: true,
|
||||
})
|
||||
public oldText: string | null;
|
||||
|
||||
@Column('text', {
|
||||
nullable: true,
|
||||
})
|
||||
@@ -54,8 +49,14 @@ export class NoteEdit {
|
||||
})
|
||||
public updatedAt: Date;
|
||||
|
||||
@Column('text', {
|
||||
nullable: true,
|
||||
})
|
||||
public oldText: string | null;
|
||||
|
||||
@Column('timestamp with time zone', {
|
||||
comment: 'The old date from before the edit',
|
||||
nullable: true,
|
||||
})
|
||||
public oldDate: Date;
|
||||
public oldDate: Date | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user