how write one code in peewee for mysql, sqlite
You can specify a custom field type, e.g.

```python
class MediumTextField(TextField):
    field_type = 'MEDIUMTEXT'
```

And just use that if the db is mysql.

Alternatively, you can configure MySQL to treat all textfields as MEDIUMTEXT if you wish:

```python
MySQLDatabase.field_types['TEXT'] = 'MEDIUMTEXT'
``` I think something like this is what I was looking for

```
class UnknownField(object):
    def __init__(self, *_, **__): pass
```

thank you
Hi,

how write one code in peewee for mysql, sqlite

I use peewee and sqlite on local server but on server use mysql need write one code to use mysql and sqlite

Like
```
database_type = 'mysql'

if database_type == 'mysql':
    db = peewee.mysql_connect('localhost', 'root', 'password', 'test1234.db')
else:
    db = peewee.sqlite_connect('test123.db')
```

if write MEDIUMTEXT Field and sqlite in database_type use this like TEXT 