I am trying to migrate from Sqite to MySQL.
Unfortunatly when restoring the field in the DB tables i get the following error:
When i look this up in google .... this could be caused by a Field which has the reuirement= Not NULL but has no Default value set.
I tested this but not able to get passed the error.
db.define_table('insurance',
Field('Company',requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Company')),
Field('Insurance_number','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Insurance Number')),
Field('Street_name', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Street Name')),
Field('House_number','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('House Number')),
Field('Postal_code','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'),label=T('Postal Code')),
Field('City','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('City')),
Field('Region','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Region')),
Field('Country','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Country')),
Field('Telephone_number','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Telephone Number')),
Field('Mobile','string', requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Mobile')),
Field('Email','string', requires=IS_EMAIL(error_message='invalid email! Please fill in a correct e-mail address.'), label=T('Email')),
auth.signature, format='%(Company)s',fake_migrate=True)
db.define_table('client',
Field('Debtor_nr',requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Debtor number')),
Field('Insurance',db.insurance,label=T('Insurance')), --> this is where the first issue takes place