99x / 99x/serverless-dynamodb-local

Can I upgrade schemas?

Open
#283 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

**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`?

Contributor guide

Open the contributing guide

Research direction

Start by comparing the schema settings in serverless.yml with the behavior of the migrate command and the existing sls deploy flow. Define done as updating an existing table's schema, including a new GSI, without deleting the table or leaving the DynamoDB - Warn - table already exists message as the only result.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.