Changes between Initial Version and Version 1 of Ticket #27885


Ignore:
Timestamp:
Feb 27, 2017, 8:46:11 AM (8 years ago)
Author:
ihucos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27885 – Description

    initial v1  
    3939
    4040
     41
     42
     43
     44{{{
     45~/R $ python manage.py migrate
     46Waiting for database...
     47(0.000) select 1; args=None
     48Database ready
     49(0.003) SELECT 1 FROM pg_database WHERE datname = 'template_postgis' LIMIT 1;; args=('template_postgis',)
     50(0.001) CREATE EXTENSION IF NOT EXISTS postgis; args=None
     51(0.009)
     52            SELECT c.relname, c.relkind
     53            FROM pg_catalog.pg_class c
     54            LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
     55            WHERE c.relkind IN ('r', 'v')
     56                AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
     57                AND pg_catalog.pg_table_is_visible(c.oid); args=None
     58(0.005) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
     59Operations to perform:
     60  Synchronize unmigrated apps: checkrequirements, s3_folder_storage, tastypie_oauth, gis, postgres, cacheops, webpack_loader, staticfiles, debug_toolbar, djorm_core, waitfordb, messages, django_otp, django_nose, storages, session_cleanup,
     61 djorm_hstore, djorm_expressions
     62  Apply all migrations: oauth2_provider, qmore, admin, oauth_provider, sendgrid, sessions, tastypie, otp_static, flatpages, sites, kombu_transport_django, invoices, contenttypes, bookoya, auth, recommend, otp_totp, two_factor
     63Synchronizing apps without migrations:
     64(0.005)
     65            SELECT c.relname, c.relkind
     66            FROM pg_catalog.pg_class c
     67            LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
     68            WHERE c.relkind IN ('r', 'v')
     69                AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
     70                AND pg_catalog.pg_table_is_visible(c.oid); args=None
     71  Creating tables...
     72    Running deferred SQL...
     73  Installing custom SQL...
     74Running migrations:
     75  Rendering model states... DONE
     76  Applying bookoya.0086_auto_20170227_1359...CREATE TABLE "bookoya_mymodel" ("name" varchar(100) NOT NULL PRIMARY KEY); (params None)
     77(0.025) CREATE TABLE "bookoya_mymodel" ("name" varchar(100) NOT NULL PRIMARY KEY); args=None
     78DROP TABLE "bookoya_mymodel" CASCADE; (params [])
     79(0.002) DROP TABLE "bookoya_mymodel" CASCADE; args=[]
     80DELETE FROM geometry_columns WHERE f_table_name = 'bookoya_mymodel'; (params [])
     81(0.002) DELETE FROM geometry_columns WHERE f_table_name = 'bookoya_mymodel'; args=[]
     82CREATE INDEX "bookoya_mymodel_name_e935283cc44e389_like" ON "bookoya_mymodel" ("name" varchar_pattern_ops); (params [])
     83(0.012) CREATE INDEX "bookoya_mymodel_name_e935283cc44e389_like" ON "bookoya_mymodel" ("name" varchar_pattern_ops); args=[]
     84Traceback (most recent call last):
     85  File "manage.py", line 47, in <module>
     86    execute_from_command_line(sys.argv)
     87  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
     88    utility.execute()
     89  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
     90    self.fetch_command(subcommand).run_from_argv(self.argv)
     91  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
     92    self.execute(*args, **cmd_options)
     93  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
     94    output = self.handle(*args, **options)
     95  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 222, in handle
     96    executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
     97  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 110, in migrate
     98    self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
     99  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 148, in apply_migration
     100    state = migration.apply(state, schema_editor)
     101  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 91, in __exit__
     102    self.execute(sql)
     103  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 111, in execute
     104    cursor.execute(sql, params)
     105  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 79, in execute
     106    return super(CursorDebugWrapper, self).execute(sql, params)
     107  File "/usr/local/lib/python2.7/dist-packages/cacheops/transaction.py", line 86, in execute
     108    result = self._no_monkey.execute(self, sql, params)
     109  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
     110    return self.cursor.execute(sql, params)
     111  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
     112    six.reraise(dj_exc_type, dj_exc_value, traceback)
     113  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
     114    return self.cursor.execute(sql, params)
     115django.db.utils.ProgrammingError: relation "bookoya_mymodel" does not exist
     116}}}
     117
     118
Back to Top