Release 2.0.9 (#3922)
* fix api definition * include customer number in validation message * fix doctrine deprecation, prepare for DBAL 4 * added DataSubscriberInterface to identify certain doctrine subscribers
This commit is contained in:
@@ -29,20 +29,20 @@ final class Version20190706224211 extends AbstractMigration
|
||||
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]);
|
||||
$timesheetMeta->modifyColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$timesheetMeta->modifyColumn('timesheet_id', ['notnull' => true]);
|
||||
|
||||
$projectMeta = $schema->getTable('kimai2_projects_meta');
|
||||
$projectMeta->changeColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$projectMeta->changeColumn('project_id', ['notnull' => true]);
|
||||
$projectMeta->modifyColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$projectMeta->modifyColumn('project_id', ['notnull' => true]);
|
||||
|
||||
$customerMeta = $schema->getTable('kimai2_customers_meta');
|
||||
$customerMeta->changeColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$customerMeta->changeColumn('customer_id', ['notnull' => true]);
|
||||
$customerMeta->modifyColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$customerMeta->modifyColumn('customer_id', ['notnull' => true]);
|
||||
|
||||
$activityMeta = $schema->getTable('kimai2_activities_meta');
|
||||
$activityMeta->changeColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$activityMeta->changeColumn('activity_id', ['notnull' => true]);
|
||||
$activityMeta->modifyColumn('visible', ['notnull' => true, 'default' => false]);
|
||||
$activityMeta->modifyColumn('activity_id', ['notnull' => true]);
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
|
||||
@@ -51,7 +51,7 @@ final class Version20210802152814 extends AbstractMigration
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$timesheet = $schema->getTable('kimai2_timesheet');
|
||||
$timesheet->changeColumn('date_tz', ['notnull' => false]);
|
||||
$timesheet->modifyColumn('date_tz', ['notnull' => false]);
|
||||
|
||||
$this->preventEmptyMigrationWarning();
|
||||
}
|
||||
|
||||
@@ -27,14 +27,14 @@ final class Version20210802160837 extends AbstractMigration
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$timesheet = $schema->getTable('kimai2_timesheet');
|
||||
$timesheet->changeColumn('date_tz', ['notnull' => true]);
|
||||
$timesheet->modifyColumn('date_tz', ['notnull' => true]);
|
||||
$timesheet->addIndex(['date_tz', 'user'], 'IDX_4F60C6B1BDF467148D93D649');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$timesheet = $schema->getTable('kimai2_timesheet');
|
||||
$timesheet->changeColumn('date_tz', ['notnull' => false]);
|
||||
$timesheet->modifyColumn('date_tz', ['notnull' => false]);
|
||||
$timesheet->dropIndex('IDX_4F60C6B1BDF467148D93D649');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user