Forums

Crashed my Postgresql by deleting all tables

Hello,

i think i just crashed my Postgresql Database, by deleting all Tables.

When i run my Django Migrations i get the following Error:

django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (no schema has been selected to create in LINE 1: CREATE TABLE "django_migrations" ("id" serial NOT NULL PRIMA...

What can i do, to fix this?

Thanks in advance.

Your best bet is probably to delete the database entirely and use Django to create a new one. If the database already exists, Django expects that the migration tables will be present.

Nice. Worked. Thanks a lot

Glad to hear that you made it work!