serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

Can I upgrade schemas?

Open theMistletoe opened this issue 3 years ago • 0 comments
trafficstars

Expected Behaviour

I’ve wrote schema setting on serverless.yml, and I’ve created one table by running migrate command. After that, I wanna update schema about add GSI on that table, so I added settings about GSI on serverless.yml, and executed migrate command.

Actual Behaviour

But, not expected, table’s schema remains same state.

I can see below logs.

DynamoDB - Warn - table [tablename] already exists

Can I upgrade schemas, not deleting exsiting table, like sls deploy?

theMistletoe avatar Aug 05 '22 05:08 theMistletoe