Open nikolaykanov opened 1 week ago
Hi,
thanks for the sample. I followed all your steps and was not able to reproduce your issue:
# cd models
# touch security.cds
# vim security.cds
# cd ..
# cat models/security.cds
entity CASBIN_RULE {
key ID: Integer64 @sql.append: 'GENERATED BY DEFAULT AS IDENTITY(START WITH 1 INCREMENT BY 1)';
PTYPE: String(100) not null;
V0: String(500);
V1: String(500);
V2: String(500);
V3: String(500);
V4: String(500);
V5: String(500);
};
# /usr/local/bin/npx cds deploy /models/security.cds --profile pg
/> successfully deployed to db:5432
# /usr/local/bin/npx cds deploy /models/security.cds --profile pg
/> successfully deployed to db:5432
# /usr/local/bin/npx cds --version
@cap-js/cds-types: 0.2.0
@cap-js/postgres: 1.10.0
@cap-js/sqlite: 1.7.3
@sap/cds: 7.9.5
@sap/cds-compiler: 4.9.8
@sap/cds-dk: 7.9.8
@sap/cds-dk (global): 7.9.8
@sap/cds-fiori: 1.2.7
@sap/cds-foss: 5.0.1
@sap/cds-mtxs: 1.18.3
@sap/eslint-plugin-cds: 3.0.5
Node.js: v22.9.0
home: /node_modules/@sap/cds
lama-cds-deployer: 1.0.3
please upgrade to the latest cds versions and try again.
BR Patrice
Description of erroneous behaviour
We're deploying tables to Postgres via cds. Deployment itself runs correctly, but when it is executed a second time, i.e. during upgrade of our app, one of the tables throws an error. The table itself is:
Error message:
Detailed steps to reproduce
/usr/local/bin/npx cds deploy /models/security.cds --profile pg
- it works.If you so this with a simpler entity such as the one below, it works fine.
Details about your project