Closed Bug 290402 Opened 20 years ago Closed 20 years ago

Functions to support reading-in a Schema object from the database

Categories

(Bugzilla :: Installation & Upgrading, enhancement, P1)

2.19.2
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

Right now bug 287986 has an r+ patch on it, but there are also going to be a lot of other patches that I want to check in that depend on code that is only *part* of bug 287986. bug 287986 cannot be checked in right now, because it requires bug 285722 also being ready. The code that I want to write will *block* bug 285722. So, it would be easier for everybody concerned if we check in parts of bug 287986 now, to avoid long dependency trees during patch reviews. :-)
Assignee: installation → mkanat
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.20
OK, I just took my text editor to the diff, and cut out all the parts of bug 287986 (attachment 180003 [details] [diff] [review]) that can't be checked-in now. I've confirmed that checking-in this patch currently makes no change to the functionality of Bugzilla, but does provide me with the functions that I will need for other code.
Attachment #180755 - Flags: review?(Tomas.Kopal)
Status: NEW → ASSIGNED
Comment on attachment 180755 [details] [diff] [review] As much of bug 287986 as can be checked-in now >@@ -1696,6 +1741,11 @@ > > my ($self, $table, $name, $definition) = @_; > >+ if ( exists $self->{abstract_schema}{$table} >+ && !exists $self->{abstract_schema}{$table}{INDEXES} ) { >+ $self->{abstract_schema}{$table}{INDEXES} = []; >+ } >+ You may want to use the new $self->get_table_abstract($table) here to simplify this. >+ #print "$table.$col_name: " . Data::Dumper->Dump([$column]) . "\n"; >+ And you may want to remove this before checkin. Otherwise it's ok (by inspection).
Attachment #180755 - Flags: review?(Tomas.Kopal) → review+
Flags: approval?
Attached patch Fix bitrotSplinter Review
Just a bitrot fix and a one-character change in the POD docs. Carrying forward r+.
Attachment #180755 - Attachment is obsolete: true
Attachment #180852 - Flags: review+
Blocks: 290403
Flags: approval? → approval+
Checking in Bugzilla/DB.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v <-- DB.pm new revision: 1.47; previous revision: 1.46 done Checking in Bugzilla/DB/Mysql.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm,v <-- Mysql.pm new revision: 1.14; previous revision: 1.13 done Checking in Bugzilla/DB/Schema.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema.pm,v <-- Schema.pm new revision: 1.23; previous revision: 1.22 done Checking in Bugzilla/DB/Schema/Mysql.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Schema/Mysql.pm,v <-- Mysql.pm new revision: 1.7; previous revision: 1.6 don
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: