text: """Peewee migrations -- 034_user_name_length.py
  
  Add an admin site configuration option to limit the length of user names.
  
  """
  
  import peewee as pw
  
  SQL = pw.SQL
  
  
  def migrate(migrator, database, fake=False, **kwargs):
      SiteMetadata = migrator.orm["site_metadata"]
      if not fake:
          SiteMetadata.create(key="site.username_max_length", value="32")
  
  
  def rollback(migrator, database, fake=False, **kwargs):
      SiteMetadata = migrator.orm["site_metadata"]
      if not fake:
          SiteMetadata.delete().where(
              SiteMetadata.key == "site.username_max_length"
          ).execute()
  