Update schema.py

Getting NoneType error on upgradeing db because table is not defined and self.table is the one we need.