Relative Content

Tag Archive for node.jssql-servertypescriptnestjstypeorm

Will changing the primary key to UUID in NestJS with SQL Server affect existing records?

@Entity({ name: DB_TABLE.ApiUsage }) export class ApiUsage { // @PrimaryGeneratedColumn() // id: number; @PrimaryGeneratedColumn(‘uuid’) id: string; } I’m using the NestJS framework with a SQL Server database. I currently have an existing ApiUsage table with nearly 10,000 records. I need to change the primary key from id: number to uuid: string. After updating the entity […]