Migration added for `field` and `materials` tables. Now they have priority field.
Also logic of getTable function changed considering priority field in this tables.
Merge remote-tracking branch 'origin/master'