just updated to Postfix autoreply 1.1.1 and run the migrate.
But I get the following error.
python manage.py migrate modoboa_postfix_autoreply
Operations to perform:
Apply all migrations: modoboa_postfix_autoreply
Running migrations:
Applying modoboa_postfix_autoreply.0002_auto_20150728_1236...Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/opt/modoboa/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/modoboa/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/opt/modoboa/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/opt/modoboa/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 161, in handle
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/opt/modoboa/lib/python2.7/site-packages/django/db/migrations/executor.py", line 68, in migrate
self.apply_migration(migration, fake=fake)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/migrations/executor.py", line 102, in apply_migration
migration.apply(project_state, schema_editor)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/migrations/migration.py", line 108, in apply
operation.database_forwards(self.app_label, schema_editor, project_state, new_state)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 139, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/schema.py", line 470, in alter_field
self._alter_field(model, old_field, new_field, old_type, new_type, old_db_params, new_db_params, strict)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/schema.py", line 647, in _alter_field
self.execute(self._create_index_sql(model, [new_field], suffix="_uniq"))
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/schema.py", line 111, in execute
cursor.execute(sql, params)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/utils.py", line 81, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/opt/modoboa/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 129, in execute
return self.cursor.execute(query, args)
File "/opt/modoboa/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/opt/modoboa/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.OperationalError: (1709, 'Index column size too large. The maximum column size is 767 bytes.')
I tried to find the migration file and check what it is trying to do but failed to do so.
Database is a InnoDB
CREATE TABLE `postfix_autoreply_transport` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(300) NOT NULL,
`method` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
CREATE TABLE `postfix_autoreply_armessage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`enabled` tinyint(1) NOT NULL,
`fromdate` datetime NOT NULL,
`untildate` datetime DEFAULT NULL,
`mbox_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `postfix_autoreply_armessage_5419c569` (`mbox_id`),
CONSTRAINT `postfix_autoreply_a_mbox_id_739f665fbc7b21df_fk_admin_mailbox_id` FOREIGN KEY (`mbox_id`) REFERENCES `admin_mailbox` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
CREATE TABLE `postfix_autoreply_arhistoric` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_sent` datetime NOT NULL,
`sender` varchar(254) NOT NULL,
`armessage_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `postfix_autoreply_arhistoric_armessage_id_1d0bc60837459629_uniq` (`armessage_id`,`sender`),
KEY `postfix_autoreply_arhistoric_edbe1cb9` (`armessage_id`),
CONSTRAINT `armessage_id_2d1162f27ac3471b_fk_postfix_autoreply_armessage_id` FOREIGN KEY (`armessage_id`) REFERENCES `postfix_autoreply_armessage` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `postfix_autoreply_alias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`full_address` varchar(255) NOT NULL,
`autoreply_address` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
Thanks for any help.