Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
grade
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Yushko
grade
Commits
6ebb11b8
Commit
6ebb11b8
authored
10 years ago
by
PavelBegunkov
Browse files
Options
Downloads
Patches
Plain Diff
release fix correction
parent
266d122a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/fix.sql
+5
-5
5 additions, 5 deletions
db/fix.sql
with
5 additions
and
5 deletions
db/fix.sql
+
5
−
5
View file @
6ebb11b8
...
...
@@ -5,16 +5,16 @@ ALTER TABLE `disciplines` CHANGE LectionCount LectureCount int(11) NOT NULL DEFA
ALTER
TABLE
students
DROP
FOREIGN
KEY
students_ibfk_1
;
ALTER
TABLE
disciplines_groups
DROP
FOREIGN
KEY
disciplines_groups_ibfk_2
;
ALTER
TABLE
students
DROP
KEY
GroupID
;
ALTER
TABLE
students
DROP
KEY
Study
GroupID
;
ALTER
TABLE
disciplines_groups
DROP
KEY
DisciplineID_2
;
ALTER
TABLE
disciplines_groups
DROP
KEY
GroupID
;
ALTER
TABLE
disciplines_groups
DROP
KEY
Study
GroupID
;
ALTER
TABLE
`students`
CHANGE
StudyGroupID
GroupID
int
(
11
)
NOT
NULL
;
ALTER
TABLE
`disciplines_groups`
CHANGE
StudyGroupID
GroupID
int
(
11
)
NOT
NULL
;
ALTER
TABLE
`students`
ADD
INDEX
`GroupID`
(
`GroupID`
);
ALTER
TABLE
`disciplines_groups`
ADD
INDEX
`GroupID`
(
`GroupID`
);
ALTER
TABLE
`disciplines_groups`
ADD
UNIQUE
KEY
`DisciplineID_2`
(
`DisciplineID`
,
`GroupID`
)
ALTER
TABLE
`disciplines_groups`
ADD
UNIQUE
KEY
`DisciplineID_2`
(
`DisciplineID`
,
`GroupID`
)
;
ALTER
TABLE
`disciplines_groups`
...
...
@@ -24,13 +24,13 @@ ADD CONSTRAINT `students_ibfk_1` FOREIGN KEY (`GroupID`) REFERENCES `study_group
ALTER
TABLE
`page_access`
CHANGE
`Pagename`
`Pagename`
VARCHAR
(
150
)
CHARACTER
SET
utf8
_general_ci
NOT
NULL
;
CHANGE
`Pagename`
`Pagename`
VARCHAR
(
150
)
CHARACTER
SET
utf8
NOT
NULL
;
ALTER
TABLE
`page_access`
ADD
UNIQUE
(
`Pagename`
);
ALTER
TABLE
`accounts`
ADD
UNIQUE
(
`ActivationCode`
);
ALTER
TABLE
`general_settings`
ADD
`Name`
VARCHAR
(
50
)
CHARACTER
SET
utf8
_general_ci
NOT
NULL
;
ALTER
TABLE
`general_settings`
ADD
`Name`
VARCHAR
(
50
)
CHARACTER
SET
utf8
NOT
NULL
;
UPDATE
`general_settings`
SET
general_settings
.
Name
=
'SemesterID'
WHERE
general_settings
.
ID
=
1
;
UPDATE
`general_settings`
SET
general_settings
.
Name
=
'HashKey'
WHERE
general_settings
.
ID
=
2
;
ALTER
TABLE
`general_settings`
ADD
UNIQUE
(
`Name`
);
...
...
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