Advertisement
Guest User

Untitled

a guest
Mar 16th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. (use ./manage.py migrate to migrate these)
  2. Migrating database
  3. DEBUG:south:south execute "SELECT COUNT(*) FROM main_pyrule WHERE name = %s" with params "['drop_event']"
  4. DEBUG:south:south execute "INSERT INTO main_pyrule(name, interface, handler, description) VALUES(%s, %s, %s, %s)" with params "['drop_event', 'IEventTrigger', 'noc.solutions.noc.default.pyrules.drop_event.drop_event', 'noc.solutions.noc.default.pyrules.drop_event.drop_event solution']"
  5. Running migrations for main:
  6. - Migrating forwards to 0054_migrate_pyrule.
  7. > main:0054_migrate_pyrule
  8. Traceback (most recent call last):
  9. File "manage.py", line 45, in <module>
  10. execute_from_command_line(sys.argv)
  11. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
  12. utility.execute()
  13. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
  14. self.fetch_command(subcommand).run_from_argv(self.argv)
  15. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
  16. self.execute(*args, **options.__dict__)
  17. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
  18. output = self.handle(*args, **options)
  19. File "/opt/noc/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
  20. ignore_ghosts = ignore_ghosts,
  21. File "/opt/noc/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
  22. success = migrator.migrate_many(target, workplan, database)
  23. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
  24. result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  25. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
  26. result = self.migrate(migration, database)
  27. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
  28. result = self.run(migration)
  29. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
  30. return self.run_migration(migration)
  31. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
  32. migration_function()
  33. File "/opt/noc/main/migrations/0054_migrate_pyrule.py", line 44, in forwards
  34. name, iface, handler, "%s solution" % handler
  35. File "/opt/noc/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
  36. cursor.execute(sql, params)
  37. File "/opt/noc/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
  38. return self.cursor.execute(query, args)
  39. django.db.utils.IntegrityError: null value in column "changed" violates not-null constraint
  40. DETAIL: Failing row contains (2, drop_event, IEventTrigger, noc.solutions.noc.default.pyrules.drop_event.drop_event solution, null, null, noc.solutions.noc.default.pyrules.drop_event.drop_event).
  41.  
  42. upgrade-user: 42: migrate failed
  43. Terminating
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement