a month ago
I want to add one more column 'status' to the Books table. I'm doing this by changing the code like, adding status below the attachments and using the command 'cds deploy' this to the sqlite db. It is working fine but the issue is that the entire data in the db is wiped. I want to keep the data in the db only but need to update the schema of the Books table. How to do that?
Request clarification before answering.
Hi @JinoyVarghese ,
Most likely you are looking for Schema Evolution, could you take a look at it, please?
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @JinoyVarghese ,
Could you try schema evolution with a new database file?
For example:
I'm asking, because it seems that schema evolution only works on database files generated with the option turned on.
If the option is turned on, the database will contain a table named cds_model to keep track of schema modifications.
Regards,
Peter
User | Count |
---|---|
78 | |
29 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.