i have been facing some difficulties in handling entity columns in coding, i mean adding or removing/deleting them from codes cause some issues in database here is how i tried to do
@Entity('user')
export class User {
.... other colums
@Column()
name: string;
}
The codes above will generate user
table in database with appropriate column i.e name,
Now here is my issue later when i decide later to change column name
to fullname
i get the following error
QueryFailedError: column "fullname" of relation "user" contains null values
Even if i delete the user
table and re-running the app,
Please assist!
i think i found the quick solution, i had to delete dist
folder and everything works