node.js – I am facing prisma migration issue

I recently added a new field called membersCount in my community model in the schema.prisma , as usual after that i migrated my schema npx prisma migrate dev , but it shows —-> Already in sync, no schema change or pending migration was found.

✔ Generated Prisma Client (v6.4.1) to .\node_modules\@prisma\client in 222ms and this memberscount field is still not added to the database . Please tell me why is it happenning and why it’s not recognising the changes , i am not able to right other route ‘s logic because of this .

**Code –

        model Community {
        id   String     @id    @default(uuid())
        name   String   @unique
        description String
        ownerId  String 
        rules   String
        createdAt     DateTime  @default(now())
        updatedAt     DateTime  @updatedAt
        joinRequests Boolean @default(false)
        post      Post[]
        flair     Flair[] 
        membersCount    Int   `new field`
        users     UserCommunity[]
        customFeeds CustomFeedCommunity[]
        communityVisits communityVisit[]
  
      }

Read more here: Source link