Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix install failure in 003_Permission_system_upgrade.php (issue #760)

My version of MySQL "forgave" inserting NULL in what turned out to be a
NOT NULL varchar, converting it to the empty string.  But I didn't mean
to do that, and it breaks elsewhere with the error

"Field 'description' doesn't have a default value".
  • Loading branch information...
commit d77585a080573a9644cd211ac1d60db8483cbf2c 1 parent 3ffe38c
@sourcejedi sourcejedi authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 bonfire/migrations/003_Permission_system_upgrade.php
View
5 bonfire/migrations/003_Permission_system_upgrade.php
@@ -76,7 +76,10 @@ public function up()
{
if($field != 'role_id' && $field != 'permission_id')
{
- $this->db->insert('permissions', array('name' => $field));
+ $this->db->insert('permissions', array(
+ 'name' => $field,
+ 'description' => ''
+ ));
}
}
$this->db->insert('permissions', array(
Please sign in to comment.
Something went wrong with that request. Please try again.