question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New drop schema options don't work for Oauth and JBatch schemas

See original GitHub issue

Describe 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:

  1. java -jar ./fhir-persistence-schema-${VERSION}-cli.jar --prop-file db2.properties --schema-name FHIRDATA --create-schemas
  2. java -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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lmsurprecommented, May 29, 2020

I think this one is a little different. dropSchema vs dropTenant. We think this one has more to do with the fact that PhysicalDataModel.drop is only dropping objects with a “SCHEMA_GROUP_TAG” tag of FHIRDATA or FHIR_ADMIN, whereas the objects in these schemas aren’t tagged in this way (I think)

0reactions
d0roppecommented, Sep 21, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found