New drop schema options don't work for Oauth and JBatch schemas
See original GitHub issueDescribe the bug
For 4.2.2 we introduced --drop-schema-fhir, --drop-schema-oauth, and --drop-schema-batch actions on the fhir-persistence-schema cli app.
However, based on the current implementation, it seems like the --drop-schema-oauth and --drop-schema-batch options don’t work.
To Reproduce Steps to reproduce the behavior:
java -jar ./fhir-persistence-schema-${VERSION}-cli.jar --prop-file db2.properties --schema-name FHIRDATA --create-schemasjava -jar ./fhir-persistence-schema-${VERSION}-cli.jar --prop-file db2.properties --drop-schema --drop-schema-oauth --drop-schema-batch --confirm-drop
Expected behavior It drops the FHIR_OAUTH and FHIR_JBATCH schemas.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Batch support schemas does not include RI and primary ...
It looks like BATCH_JOB_PARAMS and BATCH_STEP_EXECUTION_ATTRS do not include primary keys. (It also appears that these two tables are not yet used anywhere)....
Read more >Schema Registry Overview - Confluent Documentation
New Kafka serializers and deserializers are available for Protobuf and JSON Schema, along with Avro. The serializers can automatically register schemas when ...
Read more >CRM | custom objects
To create a custom object, you'll first need to define the object schema. The schema includes the object name, properties, and associations to...
Read more >Frequently Asked Questions - Apache Superset
A Superset SQLAlchemy datasource can only be a single table or a view. When working with tables, the solution would be to materialize...
Read more >Spring batch tables in a different schema
Below property in application.properties is working for me.This will create meta schema tables under new_schema in your DB. spring.batch.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think this one is a little different.
dropSchemavsdropTenant. We think this one has more to do with the fact that PhysicalDataModel.drop is only dropping objects with a “SCHEMA_GROUP_TAG” tag ofFHIRDATAorFHIR_ADMIN, whereas the objects in these schemas aren’t tagged in this way (I think)With the latest changes to main, the fhir_jbatch and fhir_oauth schemas are cleaned out. No tables remain in those schemas now with the --drop-schema-batch and --drop-schema-oauth. But the actual schema is not dropped. closing this issue. and opening a new issue for empty schemas not being dropped.