Any county, city, school-district, or other municipal corporation, incurrring any indebtedness as aforesaid, shall, before or at the time of doing so, provide for the collection of a direct annual tax sufficient to pay the interest on such debt as it falls due, and also to pay and discharge the principal thereof within twenty years from the time of contracting the same.