Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Groups restrict ip whitelist now is a csv list. Closes #1116
- Loading branch information
1 parent
7f92b4d
commit 6cb5614
Showing
5 changed files
with
71 additions
and
22 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
21 changes: 21 additions & 0 deletions
21
api/migrations/upgrades/20160728145005_UpdateDirectusGroupsIPWhitelistColumn.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 Ruckusing\Migration\Base as Ruckusing_Migration_Base; | ||
|
||
class UpdateDirectusGroupsIPWhitelistColumn extends Ruckusing_Migration_Base | ||
{ | ||
public function up() | ||
{ | ||
$this->change_column('directus_groups', 'restrict_to_ip_whitelist', 'text', array( | ||
'null' => true | ||
)); | ||
}//up() | ||
|
||
public function down() | ||
{ | ||
$this->change_column('directus_groups', 'restrict_to_ip_whitelist', 'tinyinteger', array( | ||
'limit' => 1, | ||
'null' => false, | ||
'default' => 0 | ||
)); | ||
}//down() | ||
} |
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