mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
slightly more paranoid database schema:.
made column 'program' in table 'versions' be not null, and unique. optimally you would want a unique index on 'value' and 'program' but indexes are not supported on datatype 'tinytext' until mysql 3.23
This commit is contained in:
parent
5d7c1a5516
commit
4cecbeb8d8
@ -735,8 +735,9 @@ $table{fielddefs} =
|
||||
|
||||
$table{versions} =
|
||||
'value tinytext,
|
||||
program varchar(64)';
|
||||
program varchar(64) not null,
|
||||
|
||||
unique(program)';
|
||||
|
||||
$table{votes} =
|
||||
'who mediumint not null,
|
||||
|
Loading…
Reference in New Issue
Block a user