Here is the initial log for migration for models.

The migration contains a field type 'jsonb' which is only supported by 
PostgreSQL 9.4, but ours runs on 9.3. Is there any solution for this? The 
system is running fine for now but we are missing the models migrations.

(ENV)sajan@ubuntu:~/arches-master$ python manage.py migrate models
Operations to perform:
  Apply all migrations: models
Running migrations:
  Rendering model states... DONE
  Applying models.0001_initial...Traceback (most recent call last):
  File "manage.py", line 27, in <module>
    execute_from_command_line(sys.argv)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 367, in execute_from_command_line
    utility.execute()
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
 
line 305, in run_from_argv
    self.execute(*args, **cmd_options)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
 
line 356, in execute
    output = self.handle(*args, **options)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
 
line 202, in handle
    targets, plan, fake=fake, fake_initial=fake_initial
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py",
 
line 97, in migrate
    state = self._migrate_all_forwards(plan, full_plan, fake=fake, 
fake_initial=fake_initial)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py",
 
line 132, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, 
fake_initial=fake_initial)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py",
 
line 237, in apply_migration
    state = migration.apply(state, schema_editor)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/migrations/migration.py",
 
line 129, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, 
project_state)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/migrations/operations/models.py",
 
line 96, in database_forwards
    schema_editor.create_model(model)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/schema.py",
 
line 56, in create_model
    super(PostGISSchemaEditor, self).create_model(model)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/backends/base/schema.py",
 
line 295, in create_model
    self.execute(sql, params or None)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/backends/base/schema.py",
 
line 112, in execute
    cursor.execute(sql, params)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/backends/utils.py",
 
line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/backends/utils.py",
 
line 64, in execute
    return self.cursor.execute(sql, params)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/utils.py",
 
line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File 
"/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/backends/utils.py",
 
line 62, in execute
    return self.cursor.execute(sql)
django.db.utils.ProgrammingError: type "jsonb" does not exist
LINE 1: ...OT NULL, "id" uuid NOT NULL PRIMARY KEY, "config" jsonb NULL...
                                                             ^

(ENV)sajan@ubuntu:~/arches-master$ 


-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to