CONNECTING TO {'database': PosixPath('/home/marcelm/meh/foo/extra.sqlite3'), 'detect_types': 3, 'check_same_thread': False, 'uri': True} QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name Operations to perform: Apply all migrations: auth, bar, contenttypes, sessions Running migrations: QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON Applying contenttypes.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying contenttypes.0002_remove_content_type_name...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "django_content_type" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__django_content_type" RENAME TO "django_content_type" QUERY 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") QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "django_content_type" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__django_content_type" RENAME TO "django_content_type" QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "auth_group" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(80) NOT NULL UNIQUE) QUERY 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) QUERY 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) QUERY 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) QUERY 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) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_permission_content_type_id_2f476e4b" ON "auth_permission" ("content_type_id") QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_group_permissions_group_id_b120cbf9" ON "auth_group_permissions" ("group_id") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_group_permissions_permission_id_84c5c92e" ON "auth_group_permissions" ("permission_id") QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_groups_user_id_6a12ed8b" ON "auth_user_groups" ("user_id") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_groups_group_id_97559544" ON "auth_user_groups" ("group_id") QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_user_permissions_user_id_a95ead1b" ON "auth_user_user_permissions" ("user_id") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_user_user_permissions_permission_id_1fbb5f2c" ON "auth_user_user_permissions" ("permission_id") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) OK Applying auth.0002_alter_permission_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_permission" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_permission" RENAME TO "auth_permission" QUERY 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") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE INDEX "auth_permission_content_type_id_2f476e4b" ON "auth_permission" ("content_type_id") QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0003_alter_user_email_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0004_alter_user_username_opts...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0005_alter_user_last_login_null...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0006_require_contenttypes_0002...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0007_alter_validators_add_error_messages...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0008_alter_user_username_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0009_alter_user_last_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0010_alter_group_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "new__auth_group" ("id", "name") SELECT "id", "name" FROM "auth_group" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_group" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_group" RENAME TO "auth_group" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0011_update_proxy_permissions...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying auth.0012_alter_user_first_name_max_length...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY 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) QUERY 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" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: DROP TABLE "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: ALTER TABLE "new__auth_user" RENAME TO "auth_user" QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying bar.0001_initial...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: CREATE TABLE "bar_bar" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(50) NOT NULL) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: SELECT name, type FROM sqlite_master WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' ORDER BY name QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON OK Applying bar.0002_add_bar...QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = OFF QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: BEGIN RunPython starts here CONNECTING TO {'database': PosixPath('/home/marcelm/meh/foo/default.sqlite3'), 'detect_types': 3, 'check_same_thread': False, 'uri': True} QUERY AGAINST /home/marcelm/meh/foo/default.sqlite3: INSERT INTO "bar_bar" ("name") VALUES (%s) QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_key_check QUERY AGAINST /home/marcelm/meh/foo/extra.sqlite3: PRAGMA foreign_keys = ON Traceback (most recent call last): File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/home/marcelm/meh/foo/foo/settings.py", line 70, in wrapped return func(self, query, params) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such table: bar_bar The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/marcelm/meh/foo/./manage.py", line 22, in main() File "/home/marcelm/meh/foo/./manage.py", line 18, in main execute_from_command_line(sys.argv) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line utility.execute() File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 402, in run_from_argv self.execute(*args, **cmd_options) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 448, in execute output = self.handle(*args, **options) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/base.py", line 96, in wrapped res = handle_func(*args, **kwargs) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 349, in handle post_migrate_state = executor.migrate( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 135, in migrate state = self._migrate_all_forwards( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards state = self.apply_migration( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 252, in apply_migration state = migration.apply(state, schema_editor) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/migration.py", line 130, in apply operation.database_forwards( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards self.code(from_state.apps, schema_editor) File "/home/marcelm/meh/foo/bar/migrations/0002_add_bar.py", line 8, in add_bar Bar.objects.create(name='hello') File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/query.py", line 671, in create obj.save(force_insert=True, using=self.db) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 831, in save self.save_base( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 882, in save_base updated = self._save_table( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 1025, in _save_table results = self._do_insert( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/base.py", line 1066, in _do_insert return manager._insert( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/query.py", line 1790, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1657, in execute_sql cursor.execute(sql, params) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 103, in execute return super().execute(sql, params) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/home/marcelm/meh/foo/foo/settings.py", line 70, in wrapped return func(self, query, params) File "/home/marcelm/meh/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: bar_bar