forked from kimai/kimai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
performance improvements (kimai#927)
- Loading branch information
1 parent
eb4aa23
commit cbf9086
Showing
15 changed files
with
172 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Kimai time-tracking app. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use App\Doctrine\AbstractMigration; | ||
use Doctrine\DBAL\Schema\Schema; | ||
|
||
/** | ||
* Fix meta-table definitions | ||
* | ||
* @version 1.1 | ||
*/ | ||
final class Version20190706224211 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Fix meta-table definitions'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$timesheetMeta = $schema->getTable('kimai2_timesheet_meta'); | ||
$timesheetMeta->changeColumn('visible', ['notnull' => true, 'default' => false]); | ||
$timesheetMeta->changeColumn('timesheet_id', ['notnull' => true]); | ||
|
||
$projectMeta = $schema->getTable('kimai2_projects_meta'); | ||
$projectMeta->changeColumn('visible', ['notnull' => true, 'default' => false]); | ||
$projectMeta->changeColumn('project_id', ['notnull' => true]); | ||
|
||
$customerMeta = $schema->getTable('kimai2_customers_meta'); | ||
$customerMeta->changeColumn('visible', ['notnull' => true, 'default' => false]); | ||
$customerMeta->changeColumn('customer_id', ['notnull' => true]); | ||
|
||
$activityMeta = $schema->getTable('kimai2_activities_meta'); | ||
$activityMeta->changeColumn('visible', ['notnull' => true, 'default' => false]); | ||
$activityMeta->changeColumn('activity_id', ['notnull' => true]); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// the columns above were created incorrect in migration Version20190617100845 for upgraded systems | ||
// that's why there are no equivalent changes in down() | ||
} | ||
} |
Oops, something went wrong.