-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3437 from ushahidi/use-mysql-strict
Use mysql strict mode
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
migrations/20181206211859_allow_null_export_batch_filename.php
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,21 @@ | ||
<?php | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class AllowNullExportBatchFilename extends AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$this->table('export_batches') | ||
->changeColumn('filename', 'string', [ | ||
'default' => '', | ||
'null' => true | ||
]) | ||
->update(); | ||
} | ||
|
||
public function down() | ||
{ | ||
// No op. Don't reverse this or it causes bugs | ||
} | ||
} |