Updated schema revision to 40

[skip ci]