Created
March 27, 2014 22:46
-
-
Save natea/9820763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ smallslive git:(master) ✗ sh recycledb.sh | |
+ dropdb smallslive | |
+ createdb smallslive | |
+ ./manage.py syncdb | |
Syncing... | |
Creating tables ... | |
Creating table django_admin_log | |
Creating table auth_permission | |
Creating table auth_group_permissions | |
Creating table auth_group | |
Creating table django_content_type | |
Creating table django_session | |
Creating table south_migrationhistory | |
Installing custom SQL ... | |
Installing indexes ... | |
Installed 0 object(s) from 0 fixture(s) | |
Synced: | |
> django.contrib.admin | |
> django.contrib.auth | |
> django.contrib.contenttypes | |
> django.contrib.sessions | |
> django.contrib.messages | |
> django.contrib.staticfiles | |
> crispy_forms | |
> south | |
> storages | |
> old_site | |
Not synced (use migrations): | |
- django_extensions | |
- artists | |
- events | |
- multimedia | |
- users | |
(use ./manage.py migrate to migrate these) | |
+ ./manage.py migrate | |
Running migrations for django_extensions: | |
- Migrating forwards to 0001_empty. | |
> django_extensions:0001_empty | |
- Loading initial data for django_extensions. | |
Installed 0 object(s) from 0 fixture(s) | |
Running migrations for artists: | |
- Migrating forwards to 0005_auto__add_field_artist_user. | |
> artists:0001_initial | |
> artists:0002_auto__del_field_artist_firstname__del_field_artist_lastname__add_field | |
> artists:0003_auto__del_field_artist_templateid__add_field_artist_photo | |
> artists:0004_auto__chg_field_artist_photo | |
> artists:0005_auto__add_field_artist_user | |
FATAL ERROR - The following SQL query failed: ALTER TABLE "artists_artist" ADD CONSTRAINT "user_id_refs_id_abf98c53" FOREIGN KEY ("user_id") REFERENCES "users_smallsuser" ("id") DEFERRABLE INITIALLY DEFERRED; | |
The error was: relation "users_smallsuser" does not exist | |
Error in migration: artists:0005_auto__add_field_artist_user | |
Traceback (most recent call last): | |
File "./manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line | |
utility.execute() | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv | |
self.execute(*args, **options.__dict__) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute | |
output = self.handle(*args, **options) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle | |
ignore_ghosts = ignore_ghosts, | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app | |
success = migrator.migrate_many(target, workplan, database) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/migrators.py", line 254, in migrate_many | |
result = migrator.__class__.migrate_many(migrator, target, migrations, database) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/migrators.py", line 329, in migrate_many | |
result = self.migrate(migration, database) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate | |
result = self.run(migration, database) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/migrators.py", line 114, in run | |
return self.run_migration(migration, database) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/migration/migrators.py", line 85, in run_migration | |
south.db.db.execute_deferred_sql() | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/db/generic.py", line 318, in execute_deferred_sql | |
self.execute(sql) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute | |
cursor.execute(sql, params) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute | |
return super(CursorDebugWrapper, self).execute(sql, params) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute | |
return self.cursor.execute(sql, params) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__ | |
six.reraise(dj_exc_type, dj_exc_value, traceback) | |
File "/Users/nateaune/.virtualenvs/smallslivewebsite/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute | |
return self.cursor.execute(sql, params) | |
django.db.utils.ProgrammingError: relation "users_smallsuser" does not exist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment