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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
20.63 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•20 years ago
|
Assignee: installation → mkanat
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.20
Assignee | ||
Comment 1•20 years ago
|
||
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)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 2•20 years ago
|
||
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+
Assignee | ||
Updated•20 years ago
|
Flags: approval?
Assignee | ||
Comment 3•20 years ago
|
||
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+
Updated•20 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 4•20 years ago
|
||
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.
Description
•