title: SQLAlchemy 0.7 - maximum column length
body: <p>I am using SQLAlchemy maximum column length recipe from my previous question (<a href="https://stackoverflow.com/questions/2317081/sqlalchemy-maximum-column-length">SQLAlchemy - maximum column length</a>). Since I upgraded to SQLAlchemy 0.7, the <code>LengthValidator</code> cannot be installed using the following expression:</p>
  
  <pre><code>inst.impl.extensions.insert(0, LengthValidator(col.type.length))
  </code></pre>
  
  <p>The <code>extension</code> attribute is not defined in SQLAchemy 0.7. Is there any way how to change the recipe to work with 0.7?</p>