Skip to content

Commit

Permalink
convertEntities - Remove old schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Sep 17, 2024
1 parent e82d1a4 commit 5a578e6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/CRM/CivixBundle/Command/ConvertEntityCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ protected function execute(InputInterface $input, OutputInterface $output) {
/**
* @param $xmlFiles
* @param $isCore
*
* @return array
* @throws \Exception
*/
public static function convertEntities(array $xmlFiles, bool $isCore): array {
public static function convertEntities(array $xmlFiles, bool $isCore): void {
$xmlFiles = preg_grep('/files.xml$/', $xmlFiles, PREG_GREP_INVERT);
$xmlFiles = preg_grep('/Schema.xml$/', $xmlFiles, PREG_GREP_INVERT);

Expand Down Expand Up @@ -114,10 +112,7 @@ public static function convertEntities(array $xmlFiles, bool $isCore): array {

// Cleanup old files
array_map('unlink', glob($basedir->string('xml/schema/CRM/*/*.entityType.php')));
return $ctx;
// array_map('unlink', $xmlFiles);
// unlink($basedir->string('sql/auto_install.sql'));
// unlink($basedir->string('sql/auto_uninstall.sql'));
array_map('unlink', $xmlFiles);
}

public static function getTablesForThisExtension($xmlFiles): array {
Expand Down

0 comments on commit 5a578e6

Please sign in to comment.