mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-30 01:59:23 +00:00
Add createIndex/updateIndex to openmetadata-ops.sh (#15137)
This commit is contained in:
parent
6cfa9863c4
commit
382bd61404
@ -181,6 +181,8 @@ public class OpenMetadataOperations implements Callable<Integer> {
|
||||
flyway.migrate();
|
||||
validateAndRunSystemDataMigrations(true);
|
||||
LOG.info("OpenMetadata Database Schema is Updated.");
|
||||
LOG.info("create indexes.");
|
||||
searchRepository.createIndexes();
|
||||
return 0;
|
||||
} catch (Exception e) {
|
||||
LOG.error("Failed to drop create due to ", e);
|
||||
@ -202,6 +204,8 @@ public class OpenMetadataOperations implements Callable<Integer> {
|
||||
parseConfig();
|
||||
flyway.migrate();
|
||||
validateAndRunSystemDataMigrations(force);
|
||||
LOG.info("Update Search Indexes.");
|
||||
searchRepository.updateIndexes();
|
||||
printChangeLog();
|
||||
return 0;
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user