Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
IA2
RAP
Commits
6ec81d32
Commit
6ec81d32
authored
4 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Database structure cleanup
parent
941d4231
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/setup-database.sql
+0
-51
0 additions, 51 deletions
sql/setup-database.sql
with
0 additions
and
51 deletions
sql/setup-database.sql
+
0
−
51
View file @
6ec81d32
CREATE
TABLE
`oauth2_client`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`title`
varchar
(
255
)
NOT
NULL
,
`icon`
varchar
(
255
)
DEFAULT
NULL
,
`client`
varchar
(
255
)
NOT
NULL
,
`secret`
varchar
(
255
)
NOT
NULL
,
`redirect_url`
text
NOT
NULL
,
`scope`
varchar
(
255
)
DEFAULT
NULL
,
`home_page`
varchar
(
255
)
DEFAULT
NULL
,
`show_in_home`
tinyint
(
1
)
DEFAULT
0
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`oauth2_client_auth_methods`
(
`client_id`
int
NOT
NULL
,
`auth_method`
varchar
(
50
)
NOT
NULL
,
PRIMARY
KEY
(
`client_id`
,
`auth_method`
),
FOREIGN
KEY
(
`client_id`
)
REFERENCES
`oauth2_client`
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`oauth2_client_scope_audience_mapping`
(
`client_id`
int
NOT
NULL
,
`scope`
varchar
(
255
)
NOT
NULL
,
`audience`
text
NOT
NULL
,
PRIMARY
KEY
(
`client_id`
,
`scope`
),
FOREIGN
KEY
(
`client_id`
)
REFERENCES
`oauth2_client`
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`cli_client`
(
`client_id`
varchar
(
255
)
NOT
NULL
,
`client_secret`
varchar
(
255
)
NOT
NULL
,
`scope`
text
,
`audience`
text
,
PRIMARY
KEY
(
`client_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`user`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`primary_identity`
bigint
(
20
)
DEFAULT
NULL
,
...
...
@@ -103,23 +67,8 @@ CREATE TABLE `rsa_keypairs` (
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`public_jwk`
(
`kid`
varchar
(
255
)
NOT
NULL
,
`key`
text
,
`url`
text
,
`update_time`
BIGINT
NOT
NULL
,
PRIMARY
KEY
(
`kid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`rap_permissions`
(
`user_id`
bigint
NOT
NULL
,
`permission`
varchar
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`user_id`
,
`permission`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
EVENT
login_tokens_cleanup
ON
SCHEDULE
EVERY
1
MINUTE
COMMENT
'Remove expired login tokens'
DO
DELETE
FROM
login_token
WHERE
CURRENT_TIMESTAMP
>
TIMESTAMPADD
(
MINUTE
,
1
,
creation_time
);
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