Ticket #34009: migrate-full-output.txt

File migrate-full-output.txt, 30.2 KB (added by Marcel Moreaux, 20 months ago)
Line 
1CONNECTING TO {'database': PosixPath('/home/marcelm/meh/foo/extra.sqlite3'), 'detect_types': 3, 'check_same_thread': False, 'uri': True}
2QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
3 SELECT name, type FROM sqlite_master
4 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
5 ORDER BY name
6QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
7 SELECT name, type FROM sqlite_master
8 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
9 ORDER BY name
10Operations to perform:
11 Apply all migrations: auth, bar, contenttypes, sessions
12Running migrations:
13QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
14 SELECT name, type FROM sqlite_master
15 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
16 ORDER BY name
17QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
18QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
19QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
20QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "django_migrations" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" datetime NOT NULL)
21QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
22QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
23 Applying contenttypes.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
24QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
25QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
26QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "django_content_type" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(100) NOT NULL, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL)
27QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "django_content_type_app_label_model_76bd3d3b_uniq" ON "django_content_type" ("app_label", "model")
28QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
29 SELECT name, type FROM sqlite_master
30 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
31 ORDER BY name
32QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
33QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
34QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
35 OK
36 Applying contenttypes.0002_remove_content_type_name...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
37QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
38QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
39QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__django_content_type" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL, "name" varchar(100) NULL)
40QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__django_content_type" ("id", "app_label", "model", "name") SELECT "id", "app_label", "model", "name" FROM "django_content_type"
41QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "django_content_type"
42QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__django_content_type" RENAME TO "django_content_type"
43QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "django_content_type_app_label_model_76bd3d3b_uniq" ON "django_content_type" ("app_label", "model")
44QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__django_content_type" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL)
45QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__django_content_type" ("id", "app_label", "model") SELECT "id", "app_label", "model" FROM "django_content_type"
46QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "django_content_type"
47QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__django_content_type" RENAME TO "django_content_type"
48QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "django_content_type_app_label_model_76bd3d3b_uniq" ON "django_content_type" ("app_label", "model")
49QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
50 SELECT name, type FROM sqlite_master
51 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
52 ORDER BY name
53QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
54QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
55QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
56 OK
57 Applying auth.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
58QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
59QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
60QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_permission" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(50) NOT NULL, "content_type_id" integer NOT NULL REFERENCES "django_content_type" ("id") DEFERRABLE INITIALLY DEFERRED, "codename" varchar(100) NOT NULL)
61QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_group" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(80) NOT NULL UNIQUE)
62QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_group_permissions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "group_id" integer NOT NULL REFERENCES "auth_group" ("id") DEFERRABLE INITIALLY DEFERRED, "permission_id" integer NOT NULL REFERENCES "auth_permission" ("id") DEFERRABLE INITIALLY DEFERRED)
63QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NOT NULL, "is_superuser" bool NOT NULL, "username" varchar(30) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "email" varchar(75) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL)
64QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_user_groups" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED, "group_id" integer NOT NULL REFERENCES "auth_group" ("id") DEFERRABLE INITIALLY DEFERRED)
65QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_user_user_permissions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED, "permission_id" integer NOT NULL REFERENCES "auth_permission" ("id") DEFERRABLE INITIALLY DEFERRED)
66QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
67QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "auth_permission_content_type_id_codename_01ab375a_uniq" ON "auth_permission" ("content_type_id", "codename")
68QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_permission_content_type_id_2f476e4b" ON "auth_permission" ("content_type_id")
69QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "auth_group_permissions_group_id_permission_id_0cd325b0_uniq" ON "auth_group_permissions" ("group_id", "permission_id")
70QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_group_permissions_group_id_b120cbf9" ON "auth_group_permissions" ("group_id")
71QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_group_permissions_permission_id_84c5c92e" ON "auth_group_permissions" ("permission_id")
72QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "auth_user_groups_user_id_group_id_94350c0c_uniq" ON "auth_user_groups" ("user_id", "group_id")
73QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_groups_user_id_6a12ed8b" ON "auth_user_groups" ("user_id")
74QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_groups_group_id_97559544" ON "auth_user_groups" ("group_id")
75QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "auth_user_user_permissions_user_id_permission_id_14a6b632_uniq" ON "auth_user_user_permissions" ("user_id", "permission_id")
76QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_user_permissions_user_id_a95ead1b" ON "auth_user_user_permissions" ("user_id")
77QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_user_permissions_permission_id_1fbb5f2c" ON "auth_user_user_permissions" ("permission_id")
78QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
79QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
80 SELECT name, type FROM sqlite_master
81 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
82 ORDER BY name
83QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
84 OK
85 Applying auth.0002_alter_permission_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
86QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
87QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
88QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_permission" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "content_type_id" integer NOT NULL REFERENCES "django_content_type" ("id") DEFERRABLE INITIALLY DEFERRED, "codename" varchar(100) NOT NULL, "name" varchar(255) NOT NULL)
89QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_permission" ("id", "content_type_id", "codename", "name") SELECT "id", "content_type_id", "codename", "name" FROM "auth_permission"
90QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_permission"
91QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_permission" RENAME TO "auth_permission"
92QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE UNIQUE INDEX "auth_permission_content_type_id_codename_01ab375a_uniq" ON "auth_permission" ("content_type_id", "codename")
93QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_permission_content_type_id_2f476e4b" ON "auth_permission" ("content_type_id")
94QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
95 SELECT name, type FROM sqlite_master
96 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
97 ORDER BY name
98QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
99QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
100QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
101 OK
102 Applying auth.0003_alter_user_email_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
103QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
104QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
105QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NOT NULL, "is_superuser" bool NOT NULL, "username" varchar(30) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "email" varchar(254) NOT NULL)
106QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_user" ("id", "password", "last_login", "is_superuser", "username", "first_name", "last_name", "is_staff", "is_active", "date_joined", "email") SELECT "id", "password", "last_login", "is_superuser", "username", "first_name", "last_name", "is_staff", "is_active", "date_joined", "email" FROM "auth_user"
107QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user"
108QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user"
109QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
110 SELECT name, type FROM sqlite_master
111 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
112 ORDER BY name
113QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
114QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
115QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
116 OK
117 Applying auth.0004_alter_user_username_opts...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
118QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
119QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
120QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
121 SELECT name, type FROM sqlite_master
122 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
123 ORDER BY name
124QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
125QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
126QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
127 OK
128 Applying auth.0005_alter_user_last_login_null...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
129QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
130QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
131QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "is_superuser" bool NOT NULL, "username" varchar(30) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "email" varchar(254) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "last_login" datetime NULL)
132QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_user" ("id", "password", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined", "last_login") SELECT "id", "password", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined", "last_login" FROM "auth_user"
133QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user"
134QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user"
135QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
136 SELECT name, type FROM sqlite_master
137 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
138 ORDER BY name
139QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
140QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
141QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
142 OK
143 Applying auth.0006_require_contenttypes_0002...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
144QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
145QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
146QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
147 SELECT name, type FROM sqlite_master
148 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
149 ORDER BY name
150QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
151QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
152QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
153 OK
154 Applying auth.0007_alter_validators_add_error_messages...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
155QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
156QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
157QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
158 SELECT name, type FROM sqlite_master
159 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
160 ORDER BY name
161QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
162QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
163QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
164 OK
165 Applying auth.0008_alter_user_username_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
166QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
167QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
168QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NULL, "is_superuser" bool NOT NULL, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "email" varchar(254) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "username" varchar(150) NOT NULL UNIQUE)
169QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_user" ("id", "password", "last_login", "is_superuser", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined", "username") SELECT "id", "password", "last_login", "is_superuser", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined", "username" FROM "auth_user"
170QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user"
171QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user"
172QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
173 SELECT name, type FROM sqlite_master
174 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
175 ORDER BY name
176QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
177QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
178QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
179 OK
180 Applying auth.0009_alter_user_last_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
181QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
182QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
183QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NULL, "is_superuser" bool NOT NULL, "username" varchar(150) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "email" varchar(254) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "last_name" varchar(150) NOT NULL)
184QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_user" ("id", "password", "last_login", "is_superuser", "username", "first_name", "email", "is_staff", "is_active", "date_joined", "last_name") SELECT "id", "password", "last_login", "is_superuser", "username", "first_name", "email", "is_staff", "is_active", "date_joined", "last_name" FROM "auth_user"
185QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user"
186QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user"
187QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
188 SELECT name, type FROM sqlite_master
189 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
190 ORDER BY name
191QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
192QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
193QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
194 OK
195 Applying auth.0010_alter_group_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
196QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
197QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
198QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_group" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(150) NOT NULL UNIQUE)
199QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_group" ("id", "name") SELECT "id", "name" FROM "auth_group"
200QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_group"
201QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_group" RENAME TO "auth_group"
202QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
203 SELECT name, type FROM sqlite_master
204 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
205 ORDER BY name
206QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
207QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
208QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
209 OK
210 Applying auth.0011_update_proxy_permissions...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
211QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
212QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
213QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
214 SELECT name, type FROM sqlite_master
215 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
216 ORDER BY name
217QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
218QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
219QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
220 OK
221 Applying auth.0012_alter_user_first_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
222QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
223QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
224QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "new__auth_user" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "password" varchar(128) NOT NULL, "last_login" datetime NULL, "is_superuser" bool NOT NULL, "username" varchar(150) NOT NULL UNIQUE, "last_name" varchar(150) NOT NULL, "email" varchar(254) NOT NULL, "is_staff" bool NOT NULL, "is_active" bool NOT NULL, "date_joined" datetime NOT NULL, "first_name" varchar(150) NOT NULL)
225QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_user" ("id", "password", "last_login", "is_superuser", "username", "last_name", "email", "is_staff", "is_active", "date_joined", "first_name") SELECT "id", "password", "last_login", "is_superuser", "username", "last_name", "email", "is_staff", "is_active", "date_joined", "first_name" FROM "auth_user"
226QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user"
227QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user"
228QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
229 SELECT name, type FROM sqlite_master
230 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
231 ORDER BY name
232QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
233QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
234QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
235 OK
236 Applying bar.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
237QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
238QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
239QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "bar_bar" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(50) NOT NULL)
240QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3:
241 SELECT name, type FROM sqlite_master
242 WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
243 ORDER BY name
244QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s)
245QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
246QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
247 OK
248 Applying bar.0002_add_bar...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF
249QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys
250QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN
251RunPython starts here
252CONNECTING TO {'database': PosixPath('/home/marcelm/meh/foo/default.sqlite3'), 'detect_types': 3, 'check_same_thread': False, 'uri': True}
253QUERY AGAINST /home/marcelm/meh/foo/default.sqlite3: INSERT INTO "bar_bar" ("name") VALUES (%s)
254QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check
255QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON
256Traceback (most recent call last):
257 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
258 return self.cursor.execute(sql, params)
259 File "/home/marcelm/meh/foo/foo/settings.py", line 70, in wrapped
260 return func(self, query, params)
261 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute
262 return Database.Cursor.execute(self, query, params)
263sqlite3.OperationalError: no such table: bar_bar
264
265The above exception was the direct cause of the following exception:
266
267Traceback (most recent call last):
268 File "/home/marcelm/meh/foo/./manage.py", line 22, in <module>
269 main()
270 File "/home/marcelm/meh/foo/./manage.py", line 18, in main
271 execute_from_command_line(sys.argv)
272 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
273 utility.execute()
274 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
275 self.fetch_command(subcommand).run_from_argv(self.argv)
276 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 402, in run_from_argv
277 self.execute(*args, **cmd_options)
278 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 448, in execute
279 output = self.handle(*args, **options)
280 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 96, in wrapped
281 res = handle_func(*args, **kwargs)
282 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 349, in handle
283 post_migrate_state = executor.migrate(
284 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 135, in migrate
285 state = self._migrate_all_forwards(
286 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
287 state = self.apply_migration(
288 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
289 state = migration.apply(state, schema_editor)
290 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/migration.py", line 130, in apply
291 operation.database_forwards(
292 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
293 self.code(from_state.apps, schema_editor)
294 File "/home/marcelm/meh/foo/bar/migrations/0002_add_bar.py", line 8, in add_bar
295 Bar.objects.create(name='hello')
296 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
297 return getattr(self.get_queryset(), name)(*args, **kwargs)
298 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/query.py", line 671, in create
299 obj.save(force_insert=True, using=self.db)
300 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 831, in save
301 self.save_base(
302 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 882, in save_base
303 updated = self._save_table(
304 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 1025, in _save_table
305 results = self._do_insert(
306 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 1066, in _do_insert
307 return manager._insert(
308 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
309 return getattr(self.get_queryset(), name)(*args, **kwargs)
310 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/query.py", line 1790, in _insert
311 return query.get_compiler(using=using).execute_sql(returning_fields)
312 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1657, in execute_sql
313 cursor.execute(sql, params)
314 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 103, in execute
315 return super().execute(sql, params)
316 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute
317 return self._execute_with_wrappers(
318 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
319 return executor(sql, params, many, context)
320 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
321 return self.cursor.execute(sql, params)
322 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/utils.py", line 91, in __exit__
323 raise dj_exc_value.with_traceback(traceback) from exc_value
324 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
325 return self.cursor.execute(sql, params)
326 File "/home/marcelm/meh/foo/foo/settings.py", line 70, in wrapped
327 return func(self, query, params)
328 File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute
329 return Database.Cursor.execute(self, query, params)
330django.db.utils.OperationalError: no such table: bar_bar
Back to Top