Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
b8f23535
Commit
b8f23535
authored
20 years ago
by
Arne Stabenau
Browse files
Options
Downloads
Patches
Plain Diff
mor eunified better date creation for the created/modified dates of the stable ids
parent
abf3b32b
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/patch_24_25.sql
+10
-8
10 additions, 8 deletions
sql/patch_24_25.sql
with
10 additions
and
8 deletions
sql/patch_24_25.sql
+
10
−
8
View file @
b8f23535
#
Add
and
populate
created_date
and
modified_date
to
stable_id
tables
#
Schema
24
-
25
set
@
today
=
concat
(
curdate
(),
" 12:00:00"
);
ALTER
TABLE
gene_stable_id
ADD
COLUMN
created_date
DATETIME
NOT
NULL
;
ALTER
TABLE
gene_stable_id
ADD
COLUMN
modified_date
DATETIME
NOT
NULL
;
UPDATE
gene_stable_id
SET
created_date
=
'2004-09-20 00:00:00'
;
UPDATE
gene_stable_id
SET
modified_date
=
'2004-09-20 00:00:00'
;
UPDATE
gene_stable_id
SET
created_date
=
@
today
;
UPDATE
gene_stable_id
SET
modified_date
=
@
today
;
ALTER
TABLE
exon_stable_id
ADD
COLUMN
created_date
DATETIME
NOT
NULL
;
ALTER
TABLE
exon_stable_id
ADD
COLUMN
modified_date
DATETIME
NOT
NULL
;
UPDATE
exon_stable_id
SET
created_date
=
'2004-09-20 00:00:00'
;
UPDATE
exon_stable_id
SET
modified_date
=
'2004-09-20 00:00:00'
;
UPDATE
exon_stable_id
SET
created_date
=
@
today
;
UPDATE
exon_stable_id
SET
modified_date
=
@
today
;
ALTER
TABLE
transcript_stable_id
ADD
COLUMN
created_date
DATETIME
NOT
NULL
;
ALTER
TABLE
transcript_stable_id
ADD
COLUMN
modified_date
DATETIME
NOT
NULL
;
UPDATE
transcript_stable_id
SET
created_date
=
'2004-09-20 00:00:00'
;
UPDATE
transcript_stable_id
SET
modified_date
=
'2004-09-20 00:00:00'
;
UPDATE
transcript_stable_id
SET
created_date
=
@
today
;
UPDATE
transcript_stable_id
SET
modified_date
=
@
today
;
ALTER
TABLE
translation_stable_id
ADD
COLUMN
created_date
DATETIME
NOT
NULL
;
ALTER
TABLE
translation_stable_id
ADD
COLUMN
modified_date
DATETIME
NOT
NULL
;
UPDATE
translation_stable_id
SET
created_date
=
'2004-09-20 00:00:00'
;
UPDATE
translation_stable_id
SET
modified_date
=
'2004-09-20 00:00:00'
;
UPDATE
translation_stable_id
SET
created_date
=
@
today
;
UPDATE
translation_stable_id
SET
modified_date
=
@
today
;
This diff is collapsed.
Click to expand it.
Preview
0%
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