Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
1378cc7c
Commit
1378cc7c
authored
Feb 09, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sizing up a few DB fields
parent
2f35c96b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
table_specifications.md
doc/table_specifications.md
+5
-3
init_comex_shared.sql
setup/dockers/comex2_mysql_server/init_comex_shared.sql
+6
-4
No files found.
doc/table_specifications.md
View file @
1378cc7c
...
@@ -27,16 +27,17 @@ CREATE TABLE scholars (
...
@@ -27,16 +27,17 @@ CREATE TABLE scholars (
last_name varchar(50) not null,
last_name varchar(50) not null,
initials varchar(7) not null,
initials varchar(7) not null,
affiliation_id int(15) not null,
affiliation_id int(15) not null,
position varchar(
3
0), -- eg Director
position varchar(
12
0), -- eg Director
hon_title varchar(30), -- eg Doctor
hon_title varchar(30), -- eg Doctor
interests_text varchar(3500),
interests_text varchar(3500),
gender char(1),
gender char(1),
job_looking_date char(24), -- null if not looking for a job
job_looking_date char(24), -- null if not looking for a job
home_url varchar(1
2
0), -- homepage
home_url varchar(1
8
0), -- homepage
pic_url varchar(1
2
0), -- remote pic... (full url)
pic_url varchar(1
8
0), -- remote pic... (full url)
pic_fname varchar(120), -- ...or locally saved pic (basename)
pic_fname varchar(120), -- ...or locally saved pic (basename)
valid_date date, -- when user will be ignored, if legacy status
valid_date date, -- when user will be ignored, if legacy status
record_status varchar(25), -- "active|test|legacy|closed_legacy"
record_status varchar(25), -- "active|test|legacy|closed_legacy"
old_itemid varchar(30), -- eg imported id from CSS originals
future_reserved varchar(30), -- eg for an imported id or temp status
future_reserved varchar(30), -- eg for an imported id or temp status
INDEX luid_index_sch (luid),
INDEX luid_index_sch (luid),
...
@@ -53,6 +54,7 @@ CREATE TABLE affiliations(
...
@@ -53,6 +54,7 @@ CREATE TABLE affiliations(
org_type varchar(50),
org_type varchar(50),
team_lab varchar(120) not null,
team_lab varchar(120) not null,
org_city varchar(50),
org_city varchar(50),
reserved varchar(30),
INDEX affid_index_affs (affid),
INDEX affid_index_affs (affid),
PRIMARY KEY (affid),
PRIMARY KEY (affid),
UNIQUE KEY full_affiliation (org, team_lab, org_city, org_type)
UNIQUE KEY full_affiliation (org, team_lab, org_city, org_type)
...
...
setup/dockers/comex2_mysql_server/init_comex_shared.sql
View file @
1378cc7c
...
@@ -20,16 +20,17 @@ CREATE TABLE scholars (
...
@@ -20,16 +20,17 @@ CREATE TABLE scholars (
last_name
varchar
(
50
)
not
null
,
last_name
varchar
(
50
)
not
null
,
initials
varchar
(
7
)
not
null
,
initials
varchar
(
7
)
not
null
,
affiliation_id
int
(
15
)
not
null
,
affiliation_id
int
(
15
)
not
null
,
position
varchar
(
3
0
),
-- eg Director
position
varchar
(
12
0
),
-- eg Director
hon_title
varchar
(
30
),
-- eg Doctor
hon_title
varchar
(
30
),
-- eg Doctor
interests_text
varchar
(
3500
),
interests_text
varchar
(
3500
),
gender
char
(
1
),
gender
char
(
1
),
job_looking_date
char
(
24
),
-- null if not looking for a job
job_looking_date
char
(
24
),
-- null if not looking for a job
home_url
varchar
(
1
2
0
),
-- homepage
home_url
varchar
(
1
8
0
),
-- homepage
pic_url
varchar
(
1
2
0
),
-- remote pic... (full url)
pic_url
varchar
(
1
8
0
),
-- remote pic... (full url)
pic_fname
varchar
(
120
),
-- ...or locally saved pic (basename)
pic_fname
varchar
(
120
),
-- ...or locally saved pic (basename)
valid_date
date
,
-- when user will be ignored, if legacy status
valid_date
date
,
-- when user will be ignored, if legacy status
record_status
varchar
(
25
),
-- "active|test|legacy|closed_legacy"
record_status
varchar
(
25
),
-- "active|test|legacy|closed_legacy"
old_itemid
varchar
(
30
),
-- eg imported id from CSS originals
future_reserved
varchar
(
30
),
-- eg for an imported id or temp status
future_reserved
varchar
(
30
),
-- eg for an imported id or temp status
INDEX
luid_index_sch
(
luid
),
INDEX
luid_index_sch
(
luid
),
...
@@ -46,6 +47,7 @@ CREATE TABLE affiliations(
...
@@ -46,6 +47,7 @@ CREATE TABLE affiliations(
org_type
varchar
(
50
),
org_type
varchar
(
50
),
team_lab
varchar
(
120
)
not
null
,
team_lab
varchar
(
120
)
not
null
,
org_city
varchar
(
50
),
org_city
varchar
(
50
),
reserved
varchar
(
30
),
INDEX
affid_index_affs
(
affid
),
INDEX
affid_index_affs
(
affid
),
PRIMARY
KEY
(
affid
),
PRIMARY
KEY
(
affid
),
UNIQUE
KEY
full_affiliation
(
org
,
team_lab
,
org_city
,
org_type
)
UNIQUE
KEY
full_affiliation
(
org
,
team_lab
,
org_city
,
org_type
)
...
@@ -142,7 +144,7 @@ CREATE TABLE doors_temp_user (
...
@@ -142,7 +144,7 @@ CREATE TABLE doors_temp_user (
-- (return tokens associated to a legacy user)
-- (return tokens associated to a legacy user)
CREATE
TABLE
legacy_temp_rettoks
(
CREATE
TABLE
legacy_temp_rettoks
(
luid
int
(
15
)
not
null
unique
primary
key
,
luid
int
(
15
)
not
null
unique
primary
key
,
rettok
varchar
(
255
)
not
null
unique
,
rettok
char
(
36
)
not
null
unique
,
INDEX
luid_index_ltempt
(
luid
),
INDEX
luid_index_ltempt
(
luid
),
INDEX
rettok_index_ltempt
(
rettok
)
INDEX
rettok_index_ltempt
(
rettok
)
)
;
)
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment