fix migration for sqlite users (#985)

This commit is contained in:
Kevin Papst
2019-07-25 18:00:53 +02:00
committed by GitHub
parent 12803b3957
commit 00925d38aa
2 changed files with 22 additions and 0 deletions

View File

@@ -52,6 +52,13 @@ abstract class AbstractMigration extends BaseAbstractMigration implements Contai
return 'kimai2_' . $name;
}
/**
* Whether we should deactivate foreign key support for SQLite.
* This is required, if columns are changed.
* SQLite will drop the table and therefor all referenced data if we don't deactivate this.
*
* @return bool
*/
protected function isSupportingForeignKeys(): bool
{
return true;