Closed
Bug 577793
Opened 14 years ago
Closed 14 years ago
Improve the Pg SERIAL-altering code now that we require 8.3
Categories
(Bugzilla :: Database, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.2
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
2.03 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
There were some things we couldn't quite do right with SERIAL type fields when doing an ALTER on them, in older versions of Pg. However, Pg 8.3 pretty much adds all the support we needed, so we should use the newer, better support.
Assignee | ||
Comment 1•14 years ago
|
||
We now use ALTER SEQUENCE instead of ALTER TABLE to rename sequences--this fixes the column defaults without us having to do anything else.
When adding a new sequence, we do "OWNED BY table.column" so that the sequence will be automatically dropped if the table or column get dropped.
We now actually drop the sequence if a column stops being serial (which hasn't happened in Pg-support history, but could in the future).
Assignee | ||
Updated•14 years ago
|
Flags: approval+
Assignee | ||
Comment 2•14 years ago
|
||
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/DB/Schema/Pg.pm
Committed revision 7318.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•14 years ago
|
||
Okay, this needs one more fix because it can be considered complete.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #456975 -
Flags: review+
Assignee | ||
Comment 5•14 years ago
|
||
Comment on attachment 456975 [details] [diff] [review]
Extra Fix
Wrong bug.
Attachment #456975 -
Attachment is obsolete: true
Attachment #456975 -
Flags: review+
Assignee | ||
Comment 6•14 years ago
|
||
I reopened the wrong bug.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•