Skip to content
Snippets Groups Projects
Commit 7c5df8f9 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Update documented groupnames scheme to use varchar instead of text.

Avoids:
ERROR 1170 (42000): BLOB/TEXT column 'uid' used in key specification without a key length
parent c2c2a361
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,8 @@ Database layout used in some of the examples: ...@@ -41,8 +41,8 @@ Database layout used in some of the examples:
eduPersonPrincipalName TEXT NOT NULL eduPersonPrincipalName TEXT NOT NULL
); );
CREATE TABLE usergroups ( CREATE TABLE usergroups (
uid TEXT REFERENCES users (uid) ON DELETE CASCADE ON UPDATE CASCADE, uid VARCHAR(30) NOT NULL REFERENCES users (uid) ON DELETE CASCADE ON UPDATE CASCADE,
groupname TEXT, groupname VARCHAR(30) NOT NULL,
UNIQUE(uid, groupname) UNIQUE(uid, groupname)
); );
......
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