Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltrail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fides
fltrail
Commits
94a569cf
Commit
94a569cf
authored
6 years ago
by
Martin Stähr
Browse files
Options
Downloads
Patches
Plain Diff
#40
fix: dummmy user creation
parent
c1ac569c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gemeinsamforschen/src/scripts/dbschema/createDummyUser.sql
+17
-25
17 additions, 25 deletions
gemeinsamforschen/src/scripts/dbschema/createDummyUser.sql
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+19
-25
19 additions, 25 deletions
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
with
36 additions
and
50 deletions
gemeinsamforschen/src/scripts/dbschema/createDummyUser.sql
+
17
−
25
View file @
94a569cf
drop
TABLE
`users`
;
CREATE
TABLE
`users`
(
`name`
varchar
(
400
)
NOT
NULL
,
`password`
varchar
(
200
)
NOT
NULL
,
`email`
varchar
(
400
)
NOT
NULL
,
`token`
varchar
(
800
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`users`
(
`name`
varchar
(
100
)
NOT
NULL
,
`password`
varchar
(
200
)
NOT
NULL
,
`email`
varchar
(
255
)
NOT
NULL
,
`token`
varchar
(
800
)
NOT
NULL
,
`rocketChatId`
varchar
(
400
)
NOT
NULL
,
`rocketChatAuthToken`
varchar
(
800
)
NOT
NULL
,
UNIQUE
(
email
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent1'
,
'egal'
,
'test1@uni.de'
,
'test1'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent1'
,
'egal'
,
'test1@uni.de'
,
'test1'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
,
`rocketChatId`
,
`rocketChatAuthToken`
)
VALUES
(
'teststudent1'
,
'egal'
,
'test1@uni.de'
,
'test1'
,
'1'
,
'abc'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent
2
'
,
'egal'
,
'test2@uni.de'
,
'test
2
'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
,
`rocketChatId`
,
`rocketChatAuthToken`
)
VALUES
(
'teststudent
1
'
,
'egal'
,
'test2@uni.de'
,
'test
1'
,
'1'
,
'abc
'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent
3
'
,
'egal'
,
'test3@uni.de'
,
'test
3
'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
,
`rocketChatId`
,
`rocketChatAuthToken`
)
VALUES
(
'teststudent
1
'
,
'egal'
,
'test3@uni.de'
,
'test
1'
,
'1'
,
'abc
'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent4'
,
'egal'
,
'test4@uni.de'
,
'test4'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent5'
,
'egal'
,
'test5@uni.de'
,
'test5'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent6'
,
'egal'
,
'test6@uni.de'
,
'test6'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
)
VALUES
(
'teststudent7'
,
'egal'
,
'test7@uni.de'
,
'test7'
);
INSERT
INTO
`users`
(
`name`
,
`password`
,
`email`
,
`token`
,
`rocketChatId`
,
`rocketChatAuthToken`
)
VALUES
(
'teststudent1'
,
'egal'
,
'test4@uni.de'
,
'test1'
,
'1'
,
'abc'
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+
19
−
25
View file @
94a569cf
...
...
@@ -74,25 +74,16 @@ CREATE TABLE if not exists `tags` (
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`users`
(
`name`
varchar
(
100
)
NOT
NULL
,
`password`
varchar
(
200
)
NOT
NULL
,
`email`
varchar
(
255
)
NOT
NULL
,
`token`
varchar
(
800
)
NOT
NULL
,
`rocketChatId`
varchar
(
400
)
NOT
NULL
,
`rocketChatAuthToken`
varchar
(
800
)
NOT
NULL
,
UNIQUE
(
email
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
projectuser
...
...
@@ -110,16 +101,19 @@ CREATE TABLE if not exists projectuser
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`annotations`
(
`id`
varchar
(
120
)
NOT
NULL
,
`timestamp`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`userToken`
varchar
(
120
)
DEFAULT
NULL
,
`targetId`
int
(
11
)
DEFAULT
NULL
,
`title`
varchar
(
120
)
DEFAULT
NULL
,
`comment`
varchar
(
400
)
DEFAULT
NULL
,
`startCharacter`
int
(
11
)
DEFAULT
NULL
,
`endCharacter`
int
(
11
)
DEFAULT
NULL
,
`id`
varchar
(
120
)
NOT
NULL
,
`timestamp`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`userToken`
varchar
(
120
)
DEFAULT
NULL
,
`targetId`
int
(
11
)
DEFAULT
NULL
,
`title`
varchar
(
120
)
DEFAULT
NULL
,
`comment`
varchar
(
400
)
DEFAULT
NULL
,
`startCharacter`
int
(
11
)
DEFAULT
NULL
,
`endCharacter`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
alter
table
users
...
...
@@ -164,29 +158,29 @@ CREATE TABLE if not exists tasks
CREATE
TABLE
if
not
exists
phasesSelected
(
`projectId`
varchar
(
100
)
NOT
NULL
,
`projectId`
varchar
(
100
)
NOT
NULL
,
phaseSelected
varchar
(
200
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
categoriesSelected
(
`projectId`
varchar
(
100
)
NOT
NULL
,
categorySelected
varchar
(
200
)
NOT
NULL
`projectId`
varchar
(
100
)
NOT
NULL
,
categorySelected
varchar
(
200
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
groupfindingMechanismSelected
(
`projectId`
varchar
(
100
)
NOT
NULL
,
gfmSelected
varchar
(
200
)
NOT
NULL
`projectId`
varchar
(
100
)
NOT
NULL
,
gfmSelected
varchar
(
200
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
assessmentMechanismSelected
(
`projectId`
varchar
(
100
)
NOT
NULL
,
amSelected
varchar
(
200
)
NOT
NULL
`projectId`
varchar
(
100
)
NOT
NULL
,
amSelected
varchar
(
200
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment