]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
[Bug 1592129] Pass a reference to db into Schema object
authorDylan William Hardison <dylan@hardison.net>
Sat, 1 Feb 2020 15:41:19 +0000 (16:41 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2020 15:41:19 +0000 (16:41 +0100)
commit0583e360708c0dbde8bfad3ea1d915fd7cf470ee
treea6250ee27e2d1ab7281ff85f351ea2e434c37810
parent35210c061e2ef7831624eafbc69cdbae08dc3d57
 [Bug 1592129] Pass a reference to db into Schema object

This change adds a 'db' attribute to the `Bugzilla::DB::Schema` class.
In two places (`get_empty_schema` and `deserialize_abstract`) the invocant
argument was called `$class` but was never actually a class. Those were renamed
to `$self`. It was fortunate that they were always objects because otherwise it
would have been more difficult to ensure a `db` is always present.
Bugzilla/DB.pm
Bugzilla/DB/Schema.pm
t/013dbschema.t