Skip to content
Snippets Groups Projects
Commit 22296450 authored by Pete Fritchman's avatar Pete Fritchman Committed by Lloyd Hilaiel
Browse files

SCHEMA CHANGES: Improve MySQL schema: (closes #480)

- explicitly ask for InnoDB
- use BIGINTs as primary keys
- add a BIGINT primary key to staged; chars as primary keys hurt indexing
- INDEX(foo) when foo is already UNIQUE makes a duplicate index
- email.user is now a foreign key to user.id
- add 'NOT NULL' constraints
- for varchar(N) where N < 255 and the strings are fixed length,
  it's slightly more efficient to use char(N)

Signed-off-by: default avatarLloyd Hilaiel <lloyd@hilaiel.com>
parent cd53fca4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment