Author: Not specified Language: text
Description: Not specified Timestamp: 2013-06-16 07:45:57 +0000
View raw paste Reply
  1. Running migrations for chronograph:
  2.  - Migrating forwards to 0002_add_hourly_notification_jobs.
  3.  > chronograph:0002_add_hourly_notification_jobs
  4. Error in migration: chronograph:0002_add_hourly_notification_jobs
  5. Traceback (most recent call last):
  6.   File "manage.py", line 13, in <module>
  7.     execute_from_command_line(sys.argv)
  8.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
  9.     utility.execute()
  10.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
  11.     self.fetch_command(subcommand).run_from_argv(self.argv)
  12.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
  13.     self.execute(*args, **options.__dict__)
  14.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
  15.     output = self.handle(*args, **options)
  16.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle
  17.     ignore_ghosts = ignore_ghosts,
  18.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/__init__.py", line 213, in migrate_app
  19.     success = migrator.migrate_many(target, workplan, database)
  20.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 235, in migrate_many
  21.     result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  22.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 310, in migrate_many
  23.     result = self.migrate(migration, database)
  24.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
  25.     result = self.run(migration)
  26.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 107, in run
  27.     return self.run_migration(migration)
  28.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
  29.     migration_function()
  30.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in <lambda>
  31.     return (lambda: direction(orm))
  32.   File "healarium/chronograph/migrations/0002_add_hourly_notification_jobs.py", line 12, in forwards
  33.     defaults={'name':'hourly_tasks', 'frequency':'HOURLY', 'next_run':now, 'last_run':now, 'is_running':False, 'last_run_successful':True, 'force_run':False, 'disabled':False,})
  34.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 134, in get_or_create
  35.     return self.get_query_set().get_or_create(**kwargs)
  36.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", line 452, in get_or_create
  37.     obj.save(force_insert=True, using=self.db)
  38.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", line 463, in save
  39.     self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  40.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py", line 551, in save_base
  41.     result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
  42.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 203, in _insert
  43.     return insert_query(self.model, objs, fields, **kwargs)
  44.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py", line 1593, in insert_query
  45.     return query.get_compiler(using=using).execute_sql(return_id)
  46.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 912, in execute_sql
  47.     cursor.execute(sql, params)
  48.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/util.py", line 40, in execute
  49.     return self.cursor.execute(sql, params)
  50.   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
  51.     return self.cursor.execute(query, args)
  52. django.db.utils.IntegrityError: null value in column "args" violates not-null constraint
View raw paste Reply