Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
383c6b29
Commit
383c6b29
authored
Nov 21, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing timestamps to the 'members' table
parent
52a27e74
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGELOG
CHANGELOG
+3
-0
db/migrate/20141121133009_add_timestamps_to_members.rb
db/migrate/20141121133009_add_timestamps_to_members.rb
+15
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
CHANGELOG
View file @
383c6b29
v 7.5.1
- Add missing timestamps to 'members' table
v 7.5.0
- API: Add support for Hipchat (Kevin Houdebert)
- Add time zone configuration on gitlab.yml (Sullivan Senechal)
...
...
db/migrate/20141121133009_add_timestamps_to_members.rb
0 → 100644
View file @
383c6b29
# In 20140914145549_migrate_to_new_members_model.rb we forgot to set the
# created_at and updated_at times for new records in the 'members' table. This
# became a problem after commit c8e78d972a5a628870eefca0f2ccea0199c55bda which
# was added in GitLab 7.5. With this migration we ensure that all rows in
# 'members' have at least some created_at and updated_at timestamp.
class
AddTimestampsToMembers
<
ActiveRecord
::
Migration
def
up
execute
"UPDATE members SET created_at = NOW() WHERE created_at is NULL"
execute
"UPDATE members SET updated_at = NOW() WHERE updated_at is NULL"
end
def
down
# no change
end
end
db/schema.rb
View file @
383c6b29
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20141
007100818
)
do
ActiveRecord
::
Schema
.
define
(
version:
20141
121133009
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
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