ahmia / ahmia-site

Ahmia.fi - Hidden service search engine
https://ahmia.fi
BSD 3-Clause "New" or "Revised" License
423 stars 69 forks source link

Doesn't seem to populate the database all the way #75

Closed samip5 closed 2 years ago

samip5 commented 2 years ago

For unknown reason, it seems that the postgres database is not populated with all of the tables when running python3 ahmia/manage.py migrate

django.db.utils.ProgrammingError: relation "ahmia_searchquery" does not exist
LINE 1: ...urrences", "ahmia_searchquery"."search_term" FROM "ahmia_sea...
samip5 commented 2 years ago

The tables that were created are only these:

                 List of relations
 Schema |            Name            | Type  | Owner 
--------+----------------------------+-------+-------
 public | auth_group                 | table | ahmia
 public | auth_group_permissions     | table | ahmia
 public | auth_permission            | table | ahmia
 public | auth_user                  | table | ahmia
 public | auth_user_groups           | table | ahmia
 public | auth_user_user_permissions | table | ahmia
 public | django_admin_log           | table | ahmia
 public | django_content_type        | table | ahmia
 public | django_migrations          | table | ahmia
 public | django_session             | table | ahmia
 public | django_site                | table | ahmia
(11 rows)

So I would say that it definitely did not create them properly.

samip5 commented 2 years ago

The issue was missing migrations folder in ahmia/ahmia/migrations as it's in .gitignore.