Commit 626b7573 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#165775 by hswong3i: profile name field has a unique key, so it should not allow NULL as a value

parent 509d570b
......@@ -6,7 +6,7 @@ function profile_schema() {
'fields' => array(
'fid' => array('type' => 'serial', 'not null' => TRUE),
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
'name' => array('type' => 'varchar', 'length' => 128, 'not null' => FALSE),
'name' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
'explanation' => array('type' => 'text', 'not null' => FALSE),
'category' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
'page' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment