]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
Pass a reference to db into Schema object moo-schema-part-3
authorDylan William Hardison <dylan@hardison.net>
Sun, 15 Dec 2019 20:32:19 +0000 (15:32 -0500)
committerDylan William Hardison <dylan@hardison.net>
Sun, 15 Dec 2019 20:39:57 +0000 (15:39 -0500)
commite5bbf10bfc191b19955968e4087c7dde780038ec
tree5e18f7b3ca46bb4589fefaa8ad09c28aef0180f6
parent2be2071fa3b0d74f94d2b7b0692d5f2fcaede51b
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