cds-dbm icon indicating copy to clipboard operation
cds-dbm copied to clipboard

PostgresAdapter.test.ts not targeting migrations.schema.default

Open austinkloske22 opened this issue 3 years ago • 1 comments

While attempting to add a multitenant deployment option, I found that jest test deployments always go to public schema regardless of what is defined in the configOptions.

Adjust the migrations.schema.default schema: Screen Shot 2022-01-14 at 4 31 48 PM

breakpoint after const updateSQL: any = await liquibase(liquibaseOptions).run(updateCmd)

Screen Shot 2022-01-14 at 4 34 06 PM

deployments still go to public schema:

Screen Shot 2022-01-14 at 4 34 54 PM

austinkloske22 avatar Jan 14 '22 15:01 austinkloske22

I'm seeing the same behavior on deployments using "@sap/cds": "5.7.1", "cds-pg": "0.1.16", "cds-dbm": "^0.0.28"

Screen Shot 2022-01-14 at 4 45 31 PM

Screen Shot 2022-01-14 at 4 45 58 PM

austinkloske22 avatar Jan 14 '22 15:01 austinkloske22