Closed Bug 868167 Opened 12 years ago Closed 12 years ago

Move the current cf_due_date from type DATETIME to DATE once bug 866248 has landed on prod

Categories

(bugzilla.mozilla.org :: Administration, task)

Production
task
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file)

Once we add support for new date only custom field (bug 866248) we should convert the current Due Date (cf_due_date) to it. Looking at the raw data, no one so far has stored an actual time in the column so converting will not cause any data loss. We should of course try this on the test instances to verify before product. This will also require a custom one-off script to update the BZ database schema properly and will be run by IT. dkl
Severity: normal → enhancement
OS: Linux → All
Hardware: x86_64 → All
(yay - I can't wait).
Comment on attachment 745168 [details] [diff] [review] Patch to convert a datetime column to date (v1) Review of attachment 745168 [details] [diff] [review]: ----------------------------------------------------------------- r=glob ::: contrib/reorg-tools/convert_date_time_date.pl @@ +18,5 @@ > +use Bugzilla::Constants; > + > +sub usage() { > + print <<USAGE; > +Usage: convert_date_time_date.pl <table> <column> <table> is always going to be bugs, there's no need to require this as a parameter. @@ +24,5 @@ > +E.g.: convert_date_time_date.pl bugs cf_due_date > +Converts a datetime field (FIELD_TYPE_DATETIME) to a date field type > +(FIELD_TYPE_DATE). > + > +Note: Any specific time portion will be lost but the specific date portion will be preserved. nit: s/specific//g @@ +44,5 @@ > + > +print <<EOF; > +Converting ${table}.${column} from FIELD_TYPE_DATETIME to FIELD_TYPE_DATE. > + > +Note: Any specific time portion will be lost but the specific date portion will be preserved. nit: s/specific//g @@ +56,5 @@ > + undef, FIELD_TYPE_DATE, $column); > + > +print "\ndone.\n"; > + > +exit(0); exit() at the end of a script doesn't do anything :)
Attachment #745168 - Flags: review?(glob) → review+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2 added contrib/reorg-tools/convert_date_time_date.pl Committed revision 8780.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
wohoo !!!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: