Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
d854dd65
Verified
Commit
d854dd65
authored
5 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #10525 TIME 0:05 Sql users enable
parent
cc0573e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/develop.sql
+6
-2
6 additions, 2 deletions
sql/develop.sql
with
6 additions
and
2 deletions
sql/develop.sql
+
6
−
2
View file @
d854dd65
...
...
@@ -7,8 +7,12 @@
-- *************************************************************************--
UPDATE
parameters
SET
param_value_string
=
'19.10.1'
WHERE
id
=
'database_version'
;
UPDATE
users
SET
status
=
'SPD'
WHERE
enabled
=
'N'
and
(
status
=
'OK'
or
status
=
'ABS'
);
ALTER
TABLE
users
DROP
COLUMN
IF
EXISTS
enabled
;
DO
$$
BEGIN
IF
(
SELECT
count
(
attname
)
FROM
pg_attribute
WHERE
attrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'users'
)
AND
attname
=
'enabled'
)
THEN
UPDATE
users
SET
status
=
'SPD'
WHERE
enabled
=
'N'
and
(
status
=
'OK'
or
status
=
'ABS'
);
ALTER
TABLE
users
DROP
COLUMN
IF
EXISTS
enabled
;
END
IF
;
END
$$
;
/* FULL TEXT */
DELETE
FROM
docservers
where
docserver_type_id
=
'FULLTEXT'
;
...
...
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