[GH-ISSUE #861] Healthchecks is not working after update #606

Closed
opened 2026-02-25 23:42:59 +03:00 by kerem · 23 comments
Owner

Originally created by @hamx01 on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/861

Hi! I recently updated HC to version 2.10
And after update, I can reach main menu with projects, but I can't reach project.
After I'm clicking on project, everything I have is "This page is not working".
In logs, one error that I have is:

ValueError: The ADMINS setting must be a list of 2-tuples.
  File "/usr/lib/python3.11/logging/__init__.py", line 1518, in error
    getattr(logger, level)(
    raise ValueError("The ADMINS setting must be a list of 2-tuples.")
  File "/lsiopy/lib/python3.11/site-packages/django/core/mail/__init__.py", line 124, in mail_admins
  File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 131, in send_mail
    mail.mail_admins(
    self.send_mail(subject, message, fail_silently=True, html_message=html_message)
  File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 128, in emit
    self.emit(record)
  File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle
    hdlr.handle(record)
  File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
    self.callHandlers(record)
  File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle
    self.handle(record)
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log
    log_response(
  File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 241, in log_response
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 143, in response_for_exception
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 57, in inner
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    response = response_for_exception(request, exc)
    response = self._middleware_chain(request)
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/base.py", line 140, in get_response
    response = self.get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/wsgi.py", line 124, in __call__

Could you please help me with that?

Originally created by @hamx01 on GitHub (Jul 17, 2023). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/861 Hi! I recently updated HC to version 2.10 And after update, I can reach main menu with projects, but I can't reach project. After I'm clicking on project, everything I have is "This page is not working". In logs, one error that I have is: ``` ValueError: The ADMINS setting must be a list of 2-tuples. File "/usr/lib/python3.11/logging/__init__.py", line 1518, in error getattr(logger, level)( raise ValueError("The ADMINS setting must be a list of 2-tuples.") File "/lsiopy/lib/python3.11/site-packages/django/core/mail/__init__.py", line 124, in mail_admins File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 131, in send_mail mail.mail_admins( self.send_mail(subject, message, fail_silently=True, html_message=html_message) File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 128, in emit self.emit(record) File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle hdlr.handle(record) File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers self.callHandlers(record) File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle self.handle(record) self._log(ERROR, msg, args, **kwargs) File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log log_response( File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 241, in log_response File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 143, in response_for_exception ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 57, in inner ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ response = response_for_exception(request, exc) response = self._middleware_chain(request) File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/base.py", line 140, in get_response response = self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ Traceback (most recent call last): File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/wsgi.py", line 124, in __call__ ``` Could you please help me with that?
kerem closed this issue 2026-02-25 23:42:59 +03:00
Author
Owner

@cuu508 commented on GitHub (Jul 17, 2023):

I think there are two issues here:

  • something is causing an exception when you visit a project – but I don't see the exception in the log excerpt above, so don't know what the issue is
  • Healthchecks tries to send an error report to email addresses listed in ADMINS, but fails, because ADMINS does not have the expected "list of 2-tuples" format. That might be an issue with the linuxserver image.
<!-- gh-comment-id:1637681480 --> @cuu508 commented on GitHub (Jul 17, 2023): I think there are two issues here: * something is causing an exception when you visit a project – but I don't see the exception in the log excerpt above, so don't know what the issue is * Healthchecks tries to send an error report to email addresses listed in ADMINS, but fails, because ADMINS does not have the expected "list of 2-tuples" format. That might be an issue with the linuxserver image.
Author
Owner

@hamx01 commented on GitHub (Jul 17, 2023):

@cuu508
Okay, how can I fix this error with ADMINS or there is no fix because I'm using linuxserver image?
My env variable looks like this:
ADMINS='myemail@mydomain.com'

And what about exception with project page, I found this line in logs (seems that when I'm trying to reach page there are 0 bytes generated):
[pid: 151|app: 0|req: 4421/4466] 192.168.1.42 () {38 vars in 1123 bytes} [Mon Jul 17 09:28:28 2023] GET /projects/42ae0cc6-36d7-4518-a2c9-b52098d74a34/checks/ => generated 0 bytes in 1636 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)

One more question. Is there possibility to reinstall HC without losing everything. Like ping URLs and projects? (In case if this exception can't be fixed)

<!-- gh-comment-id:1637699052 --> @hamx01 commented on GitHub (Jul 17, 2023): @cuu508 Okay, how can I fix this error with ADMINS or there is no fix because I'm using linuxserver image? My env variable looks like this: ADMINS='myemail@mydomain.com' And what about exception with project page, I found this line in logs (seems that when I'm trying to reach page there are 0 bytes generated): [pid: 151|app: 0|req: 4421/4466] 192.168.1.42 () {38 vars in 1123 bytes} [Mon Jul 17 09:28:28 2023] GET /projects/42ae0cc6-36d7-4518-a2c9-b52098d74a34/checks/ => generated 0 bytes in 1636 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0) One more question. Is there possibility to reinstall HC without losing everything. Like ping URLs and projects? (In case if this exception can't be fixed)
Author
Owner

@cuu508 commented on GitHub (Jul 17, 2023):

Take a look what the generated local_settings.py inside the healthchecks container looks like. ADMINS in there should look something like:

ADMINS=[("myemail@mydomain.com", "myemail@mydomain.com")]

If it doesn't, that's an issue that should be reported to linuxserver maintainers, and fixed in the linuxserver image.

ADMINS is a standard Django setting: https://docs.djangoproject.com/en/4.2/ref/settings/#admins

And what about exception with project page, I found this line in logs

The logs show the server generated a HTTP 500 "Internal Server Error" response, but there are no details on what caused the error.

Is there possibility to reinstall HC without losing everything. Like ping URLs and projects? (In case if this exception can't be fixed)

All of Healthchecks state is stored in the database. If you switch to a different container image, but point it to the same database, you will keep the same user accounts, projects, checks, etc. To make sure you don't lose your data, make sure to back up the database before any major changes.

<!-- gh-comment-id:1637720744 --> @cuu508 commented on GitHub (Jul 17, 2023): Take a look what the generated `local_settings.py` inside the healthchecks container looks like. ADMINS in there should look something like: ``` ADMINS=[("myemail@mydomain.com", "myemail@mydomain.com")] ``` If it doesn't, that's an issue that should be reported to linuxserver maintainers, and fixed in the linuxserver image. ADMINS is a standard Django setting: https://docs.djangoproject.com/en/4.2/ref/settings/#admins > And what about exception with project page, I found this line in logs The logs show the server generated a HTTP 500 "Internal Server Error" response, but there are no details on what caused the error. > Is there possibility to reinstall HC without losing everything. Like ping URLs and projects? (In case if this exception can't be fixed) All of Healthchecks state is stored in the database. If you switch to a different container image, but point it to the same database, you will keep the same user accounts, projects, checks, etc. To make sure you don't lose your data, make sure to back up the database before any major changes.
Author
Owner

@hamx01 commented on GitHub (Jul 17, 2023):

@cuu508
I checked local_setting.py and the ADMINS are looked like this:
ADMINS="myemail@mydomain.com"
I changed it to:
ADMINS=[("myemail@mydomain.com")]
But it gives nothing, the error of ADMINS is not 2-tuples list is all the time in logs.

<!-- gh-comment-id:1637821508 --> @hamx01 commented on GitHub (Jul 17, 2023): @cuu508 I checked `local_setting.py` and the ADMINS are looked like this: `ADMINS="myemail@mydomain.com"` I changed it to: `ADMINS=[("myemail@mydomain.com")]` But it gives nothing, the error of ADMINS is not 2-tuples list is all the time in logs.
Author
Owner

@cuu508 commented on GitHub (Jul 17, 2023):

Change it to

ADMINS=[("My Name", "myemail@mydomain.com")]
<!-- gh-comment-id:1637835104 --> @cuu508 commented on GitHub (Jul 17, 2023): Change it to ``` ADMINS=[("My Name", "myemail@mydomain.com")] ```
Author
Owner

@hamx01 commented on GitHub (Jul 17, 2023):

@cuu508 Yep, it helps, thank you! I will try to report it to linuxserver.

What about another problem. Now I see Internal Server Error 500 when trying to enter my project.
And some new logs appeared (sorry for that big amount, I just don't know which are the most important logs):

Traceback (most recent call last):
  File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
Internal Server Error: /projects/42ae0cc6-36d7-4518-a2c9-b52098d74a34/checks/
  File "/lsiopy/lib/python3.11/site-packages/django/db/backends/mysql/base.py", line 75, in execute
    return self.cursor.execute(query, args)
    res = self._query(mogrified_query)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/MySQLdb/cursors.py", line 179, in execute
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/MySQLdb/cursors.py", line 330, in _query
    db.query(q)
    _mysql.connection.query(self, query)
  File "/lsiopy/lib/python3.11/site-packages/MySQLdb/connections.py", line 255, in query
MySQLdb.IntegrityError: (1048, "Column 'deletion_scheduled_date' cannot be null")
The above exception was the direct cause of the following exception:
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
               ^^^^^^^^^^^^^^^^^^^^^
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    return view_func(request, *args, **kwargs)
  File "/lsiopy/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/healthchecks/hc/front/views.py", line 200, in my_checks
    _refresh_last_active_date(request.profile)
  File "/app/healthchecks/hc/front/views.py", line 188, in _refresh_last_active_date
    profile.save()
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 814, in save
    updated = self._save_table(
              ^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 877, in save_base
    self.save_base(
              ^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 990, in _save_table
    updated = self._do_update(
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 1054, in _do_update
    return filtered._update(values) > 0
           ^^^^^^^^^^^^^^^^^^^^^^^^
    return query.get_compiler(self.db).execute_sql(CURSOR)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/query.py", line 1231, in _update
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1984, in execute_sql
    cursor = super().execute_sql(result_type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
    cursor.execute(sql, params)
  File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 84, in _execute
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    return executor(sql, params, many, context)
    with self.db.wrap_database_errors:
  File "/lsiopy/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
django.db.utils.IntegrityError: (1048, "Column 'deletion_scheduled_date' cannot be null")
<!-- gh-comment-id:1637853150 --> @hamx01 commented on GitHub (Jul 17, 2023): @cuu508 Yep, it helps, thank you! I will try to report it to linuxserver. What about another problem. Now I see Internal Server Error 500 when trying to enter my project. And some new logs appeared (sorry for that big amount, I just don't know which are the most important logs): ``` Traceback (most recent call last): File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) Internal Server Error: /projects/42ae0cc6-36d7-4518-a2c9-b52098d74a34/checks/ File "/lsiopy/lib/python3.11/site-packages/django/db/backends/mysql/base.py", line 75, in execute return self.cursor.execute(query, args) res = self._query(mogrified_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/MySQLdb/cursors.py", line 179, in execute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/MySQLdb/cursors.py", line 330, in _query db.query(q) _mysql.connection.query(self, query) File "/lsiopy/lib/python3.11/site-packages/MySQLdb/connections.py", line 255, in query MySQLdb.IntegrityError: (1048, "Column 'deletion_scheduled_date' cannot be null") The above exception was the direct cause of the following exception: File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response ^^^^^^^^^^^^^^^^^^^^^ response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return view_func(request, *args, **kwargs) File "/lsiopy/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/healthchecks/hc/front/views.py", line 200, in my_checks _refresh_last_active_date(request.profile) File "/app/healthchecks/hc/front/views.py", line 188, in _refresh_last_active_date profile.save() File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 814, in save updated = self._save_table( ^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 877, in save_base self.save_base( ^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 990, in _save_table updated = self._do_update( File "/lsiopy/lib/python3.11/site-packages/django/db/models/base.py", line 1054, in _do_update return filtered._update(values) > 0 ^^^^^^^^^^^^^^^^^^^^^^^^ return query.get_compiler(self.db).execute_sql(CURSOR) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/db/models/query.py", line 1231, in _update File "/lsiopy/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1984, in execute_sql cursor = super().execute_sql(result_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql cursor.execute(sql, params) File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers File "/lsiopy/lib/python3.11/site-packages/django/db/backends/utils.py", line 84, in _execute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return executor(sql, params, many, context) with self.db.wrap_database_errors: File "/lsiopy/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value django.db.utils.IntegrityError: (1048, "Column 'deletion_scheduled_date' cannot be null") ```
Author
Owner

@cuu508 commented on GitHub (Jul 17, 2023):

This is likely because database schema migrations (manage.py migrate) have not been applied.

The healthchecks/healthchecks image applies migrations automatically on startup. I'm not sure how to apply migrations with the linuxserver image.

<!-- gh-comment-id:1637865280 --> @cuu508 commented on GitHub (Jul 17, 2023): This is likely because database schema migrations (`manage.py migrate`) have not been applied. The `healthchecks/healthchecks` image applies migrations automatically on startup. I'm not sure how to apply migrations with the linuxserver image.
Author
Owner

@hamx01 commented on GitHub (Jul 17, 2023):

If I switch linuxserver image to healthchecks. And will use my database which I have now. Will it be a problem?
Or we can give it a try?

<!-- gh-comment-id:1637876818 --> @hamx01 commented on GitHub (Jul 17, 2023): If I switch `linuxserver` image to `healthchecks`. And will use my database which I have now. Will it be a problem? Or we can give it a try?
Author
Owner

@cuu508 commented on GitHub (Jul 17, 2023):

If the database also runs in a container, and you manage it with docker compose, I'm not sure, you should consult with docker expert, I'm not docker expert :-)

If the database runs as a normal system process, use the same DB_... settings and there should be no problems.

Whenever in doubt, make backups first.

<!-- gh-comment-id:1637893089 --> @cuu508 commented on GitHub (Jul 17, 2023): If the database also runs in a container, and you manage it with docker compose, I'm not sure, you should consult with docker expert, I'm not docker expert :-) If the database runs as a normal system process, use the same `DB_...` settings and there should be no problems. Whenever in doubt, make backups first.
Author
Owner

@hamx01 commented on GitHub (Jul 17, 2023):

Database runs in container, but without docker compose. Like if I replace docker-compose.yml file of HC, it will not affect DB.
So I will give it a try and get back to you if I would have any problems further.

<!-- gh-comment-id:1637905762 --> @hamx01 commented on GitHub (Jul 17, 2023): Database runs in container, but without docker compose. Like if I replace docker-compose.yml file of HC, it will not affect DB. So I will give it a try and get back to you if I would have any problems further.
Author
Owner

@hamx01 commented on GitHub (Jul 18, 2023):

@cuu508
There is a new day and new problems.
I changed docker image to healthchecks and the database remains as it was.
And now when I'm trying to reach the login page, I have Bad Request (400) code.
I would really appreciate it if you could help with this problem, because we are using it in production, and it will be very nice if there won't be any necessity to edit about 30+ scripts with new ping URL.
I'm attaching logs for you:
_healthchecks_logs.txt

If you want a database structure, I can share it.

<!-- gh-comment-id:1639911233 --> @hamx01 commented on GitHub (Jul 18, 2023): @cuu508 There is a new day and new problems. I changed docker image to `healthchecks` and the database remains as it was. And now when I'm trying to reach the login page, I have `Bad Request (400)` code. I would really appreciate it if you could help with this problem, because we are using it in production, and it will be very nice if there won't be any necessity to edit about 30+ scripts with new ping URL. I'm attaching logs for you: [_healthchecks_logs.txt](https://github.com/healthchecks/healthchecks/files/12079004/_healthchecks_logs.txt) If you want a database structure, I can share it.
Author
Owner

@cuu508 commented on GitHub (Jul 18, 2023):

What do your ALLOWED_HOSTS and SITE_ROOT settings look like?
What is the site URL when you view it in the browser?

<!-- gh-comment-id:1640058729 --> @cuu508 commented on GitHub (Jul 18, 2023): What do your `ALLOWED_HOSTS` and `SITE_ROOT` settings look like? What is the site URL when you view it in the browser?
Author
Owner

@hamx01 commented on GitHub (Jul 18, 2023):

I set ALLOWED_HOSTS and SITE ROOT as URL that I'm trying to reach in browser, and now it is allowing me to enter the system, and I even logged in my account and see my project but when I'm trying to reach project I have Server Error (500).

And at the top of the page there is a label that says:
Running with an insecure SECRET_KEY value, do not use in production.

Attaching logs that shows what's going on when trying to open project:
_healthchecks_logs_opening_project.txt

<!-- gh-comment-id:1640207781 --> @hamx01 commented on GitHub (Jul 18, 2023): I set `ALLOWED_HOSTS` and `SITE ROOT` as URL that I'm trying to reach in browser, and now it is allowing me to enter the system, and I even logged in my account and see my project but when I'm trying to reach project I have `Server Error (500)`. And at the top of the page there is a label that says: `Running with an insecure SECRET_KEY value, do not use in production.` Attaching logs that shows what's going on when trying to open project: [_healthchecks_logs_opening_project.txt](https://github.com/healthchecks/healthchecks/files/12080816/_healthchecks_logs_opening_project.txt)
Author
Owner

@cuu508 commented on GitHub (Jul 18, 2023):

As an experiment, I started a MariaDB server, created a database, and applied all migrations. The accounts_profile table looks like so for me:

MariaDB [hc]> describe accounts_profile;
+-------------------------+--------------+------+-----+---------+----------------+
| Field                   | Type         | Null | Key | Default | Extra          |
+-------------------------+--------------+------+-----+---------+----------------+
| id                      | int(11)      | NO   | PRI | NULL    | auto_increment |
| next_report_date        | datetime(6)  | YES  |     | NULL    |                |
| user_id                 | int(11)      | YES  | UNI | NULL    |                |
| ping_log_limit          | int(11)      | NO   |     | NULL    |                |
| token                   | varchar(128) | NO   |     | NULL    |                |
| check_limit             | int(11)      | NO   |     | NULL    |                |
| last_sms_date           | datetime(6)  | YES  |     | NULL    |                |
| sms_limit               | int(11)      | NO   |     | NULL    |                |
| sms_sent                | int(11)      | NO   |     | NULL    |                |
| team_limit              | int(11)      | NO   |     | NULL    |                |
| sort                    | varchar(20)  | NO   |     | NULL    |                |
| nag_period              | bigint(20)   | NO   |     | NULL    |                |
| next_nag_date           | datetime(6)  | YES  |     | NULL    |                |
| deletion_notice_date    | datetime(6)  | YES  |     | NULL    |                |
| last_active_date        | datetime(6)  | YES  |     | NULL    |                |
| call_limit              | int(11)      | NO   |     | NULL    |                |
| calls_sent              | int(11)      | NO   |     | NULL    |                |
| last_call_date          | datetime(6)  | YES  |     | NULL    |                |
| reports                 | varchar(10)  | NO   |     | NULL    |                |
| tz                      | varchar(36)  | NO   |     | NULL    |                |
| theme                   | varchar(10)  | YES  |     | NULL    |                |
| totp                    | varchar(32)  | YES  |     | NULL    |                |
| totp_created            | datetime(6)  | YES  |     | NULL    |                |
| deletion_scheduled_date | datetime(6)  | YES  |     | NULL    |                |
| over_limit_date         | datetime(6)  | YES  |     | NULL    |                |
+-------------------------+--------------+------+-----+---------+----------------+

The contents of django_migrations table:

MariaDB [hc]> select * from django_migrations;
+-----+--------------+-----------------------------------------------------+----------------------------+
| id  | app          | name                                                | applied                    |
+-----+--------------+-----------------------------------------------------+----------------------------+
|   1 | contenttypes | 0001_initial                                        | 2023-07-18 13:44:58.168287 |
|   2 | auth         | 0001_initial                                        | 2023-07-18 13:44:58.363566 |
|   3 | accounts     | 0001_initial                                        | 2023-07-18 13:44:58.414748 |
|   4 | accounts     | 0002_profile_ping_log_limit                         | 2023-07-18 13:44:58.439951 |
|   5 | accounts     | 0003_profile_token                                  | 2023-07-18 13:44:58.460076 |
|   6 | accounts     | 0004_profile_api_key                                | 2023-07-18 13:44:58.479397 |
|   7 | accounts     | 0005_auto_20160509_0801                             | 2023-07-18 13:44:58.551296 |
|   8 | accounts     | 0006_profile_current_team                           | 2023-07-18 13:44:58.566785 |
|   9 | accounts     | 0007_profile_check_limit                            | 2023-07-18 13:44:58.582116 |
|  10 | accounts     | 0008_profile_bill_to                                | 2023-07-18 13:44:58.596874 |
|  11 | accounts     | 0009_auto_20170714_1734                             | 2023-07-18 13:44:58.667756 |
|  12 | accounts     | 0010_profile_team_limit                             | 2023-07-18 13:44:58.680052 |
|  13 | accounts     | 0011_profile_sort                                   | 2023-07-18 13:44:58.694078 |
|  14 | accounts     | 0012_auto_20171014_1002                             | 2023-07-18 13:44:58.718442 |
|  15 | accounts     | 0013_remove_profile_team_access_allowed             | 2023-07-18 13:44:58.731488 |
|  16 | accounts     | 0014_auto_20171227_1530                             | 2023-07-18 13:44:58.740974 |
|  17 | accounts     | 0015_auto_20181029_1858                             | 2023-07-18 13:44:58.773713 |
|  18 | accounts     | 0016_remove_profile_bill_to                         | 2023-07-18 13:44:58.786413 |
|  19 | accounts     | 0017_auto_20190112_1426                             | 2023-07-18 13:44:58.856739 |
|  20 | accounts     | 0018_auto_20190112_1426                             | 2023-07-18 13:44:58.867761 |
|  21 | accounts     | 0019_project_badge_key                              | 2023-07-18 13:44:58.879685 |
|  22 | accounts     | 0020_auto_20190112_1950                             | 2023-07-18 13:44:58.887542 |
|  23 | accounts     | 0021_auto_20190112_2005                             | 2023-07-18 13:44:58.912107 |
|  24 | accounts     | 0022_auto_20190114_0857                             | 2023-07-18 13:44:58.972362 |
|  25 | accounts     | 0023_auto_20190117_1419                             | 2023-07-18 13:44:59.010625 |
|  26 | accounts     | 0024_auto_20190119_1540                             | 2023-07-18 13:44:59.048877 |
|  27 | accounts     | 0025_remove_member_team                             | 2023-07-18 13:44:59.077602 |
|  28 | accounts     | 0026_auto_20190204_2042                             | 2023-07-18 13:44:59.112014 |
|  29 | accounts     | 0027_profile_deletion_notice_date                   | 2023-07-18 13:44:59.125211 |
|  30 | accounts     | 0028_auto_20191119_1346                             | 2023-07-18 13:44:59.144262 |
|  31 | accounts     | 0029_remove_profile_current_project                 | 2023-07-18 13:44:59.171696 |
|  32 | accounts     | 0030_member_transfer_request_date                   | 2023-07-18 13:44:59.186285 |
|  33 | accounts     | 0031_auto_20200803_1413                             | 2023-07-18 13:44:59.233578 |
|  34 | accounts     | 0032_auto_20200819_0757                             | 2023-07-18 13:44:59.246266 |
|  35 | accounts     | 0033_member_rw                                      | 2023-07-18 13:44:59.261331 |
|  36 | accounts     | 0034_credential                                     | 2023-07-18 13:44:59.285372 |
|  37 | accounts     | 0035_profile_reports                                | 2023-07-18 13:44:59.304653 |
|  38 | accounts     | 0036_fill_profile_reports                           | 2023-07-18 13:44:59.315124 |
|  39 | accounts     | 0037_profile_tz                                     | 2023-07-18 13:44:59.330384 |
|  40 | accounts     | 0038_profile_theme                                  | 2023-07-18 13:44:59.342733 |
|  41 | accounts     | 0039_remove_profile_reports_allowed                 | 2023-07-18 13:44:59.359159 |
|  42 | accounts     | 0040_auto_20210722_1244                             | 2023-07-18 13:44:59.395855 |
|  43 | accounts     | 0041_fill_role                                      | 2023-07-18 13:44:59.406069 |
|  44 | accounts     | 0042_remove_member_rw                               | 2023-07-18 13:44:59.422315 |
|  45 | accounts     | 0043_add_role_manager                               | 2023-07-18 13:44:59.429443 |
|  46 | accounts     | 0044_auto_20210730_0942                             | 2023-07-18 13:44:59.455419 |
|  47 | accounts     | 0045_auto_20210908_1257                             | 2023-07-18 13:44:59.496569 |
|  48 | accounts     | 0046_profile_deletion_scheduled_date                | 2023-07-18 13:44:59.509024 |
|  49 | accounts     | 0047_profile_over_limit_date                        | 2023-07-18 13:44:59.520409 |
|  50 | admin        | 0001_initial                                        | 2023-07-18 13:44:59.555255 |
|  51 | admin        | 0002_logentry_remove_auto_add                       | 2023-07-18 13:44:59.562720 |
|  52 | admin        | 0003_logentry_add_action_flag_choices               | 2023-07-18 13:44:59.569333 |
|  53 | api          | 0001_initial                                        | 2023-07-18 13:44:59.591859 |
|  54 | api          | 0002_auto_20150616_0732                             | 2023-07-18 13:44:59.657022 |
|  55 | api          | 0003_auto_20150616_1249                             | 2023-07-18 13:44:59.683773 |
|  56 | api          | 0004_auto_20150616_1319                             | 2023-07-18 13:44:59.717662 |
|  57 | api          | 0005_auto_20150630_2021                             | 2023-07-18 13:44:59.812480 |
|  58 | api          | 0006_check_grace                                    | 2023-07-18 13:44:59.829975 |
|  59 | api          | 0007_ping                                           | 2023-07-18 13:44:59.854255 |
|  60 | api          | 0008_auto_20150801_1213                             | 2023-07-18 13:44:59.865581 |
|  61 | api          | 0009_auto_20150801_1250                             | 2023-07-18 13:44:59.901013 |
|  62 | api          | 0010_channel                                        | 2023-07-18 13:44:59.960866 |
|  63 | api          | 0011_notification                                   | 2023-07-18 13:44:59.999697 |
|  64 | api          | 0012_auto_20150930_1922                             | 2023-07-18 13:45:00.013475 |
|  65 | api          | 0013_auto_20151001_2029                             | 2023-07-18 13:45:00.026905 |
|  66 | api          | 0014_auto_20151019_2039                             | 2023-07-18 13:45:00.045163 |
|  67 | api          | 0015_auto_20151022_1008                             | 2023-07-18 13:45:00.067683 |
|  68 | api          | 0016_auto_20151030_1107                             | 2023-07-18 13:45:00.081288 |
|  69 | api          | 0017_auto_20151117_1032                             | 2023-07-18 13:45:00.094116 |
|  70 | api          | 0018_remove_ping_body                               | 2023-07-18 13:45:00.107540 |
|  71 | api          | 0019_check_tags                                     | 2023-07-18 13:45:00.129930 |
|  72 | api          | 0020_check_n_pings                                  | 2023-07-18 13:45:00.153005 |
|  73 | api          | 0021_ping_n                                         | 2023-07-18 13:45:00.166818 |
|  74 | api          | 0022_auto_20160130_2042                             | 2023-07-18 13:45:00.198290 |
|  75 | api          | 0023_auto_20160131_1919                             | 2023-07-18 13:45:00.205450 |
|  76 | api          | 0024_auto_20160203_2227                             | 2023-07-18 13:45:00.218126 |
|  77 | api          | 0025_auto_20160216_1214                             | 2023-07-18 13:45:00.229011 |
|  78 | api          | 0026_auto_20160415_1824                             | 2023-07-18 13:45:00.250963 |
|  79 | api          | 0027_auto_20161213_1059                             | 2023-07-18 13:45:00.311755 |
|  80 | api          | 0028_auto_20170305_1907                             | 2023-07-18 13:45:00.328712 |
|  81 | api          | 0029_auto_20170507_1251                             | 2023-07-18 13:45:00.333865 |
|  82 | api          | 0030_check_last_ping_body                           | 2023-07-18 13:45:00.355064 |
|  83 | api          | 0031_auto_20170509_1320                             | 2023-07-18 13:45:00.372289 |
|  84 | api          | 0032_auto_20170608_1158                             | 2023-07-18 13:45:00.381143 |
|  85 | api          | 0033_auto_20170714_1715                             | 2023-07-18 13:45:00.396250 |
|  86 | api          | 0034_auto_20171227_1530                             | 2023-07-18 13:45:00.405430 |
|  87 | api          | 0035_auto_20171229_2008                             | 2023-07-18 13:45:00.414556 |
|  88 | api          | 0036_auto_20180116_2243                             | 2023-07-18 13:45:00.440492 |
|  89 | api          | 0037_auto_20180127_1215                             | 2023-07-18 13:45:00.460983 |
|  90 | api          | 0038_auto_20180318_1306                             | 2023-07-18 13:45:00.495394 |
|  91 | api          | 0039_remove_check_last_ping_body                    | 2023-07-18 13:45:00.510975 |
|  92 | api          | 0040_auto_20180517_1336                             | 2023-07-18 13:45:00.551023 |
|  93 | api          | 0041_check_desc                                     | 2023-07-18 13:45:00.571695 |
|  94 | api          | 0042_auto_20181029_1522                             | 2023-07-18 13:45:00.584579 |
|  95 | api          | 0043_channel_name                                   | 2023-07-18 13:45:00.606332 |
|  96 | api          | 0044_auto_20181120_2004                             | 2023-07-18 13:45:00.679847 |
|  97 | api          | 0045_flip                                           | 2023-07-18 13:45:00.713862 |
|  98 | api          | 0046_auto_20181218_1245                             | 2023-07-18 13:45:00.749989 |
|  99 | api          | 0047_auto_20181225_2315                             | 2023-07-18 13:45:00.771884 |
| 100 | api          | 0048_auto_20190102_0737                             | 2023-07-18 13:45:00.782988 |
| 101 | api          | 0049_auto_20190102_0743                             | 2023-07-18 13:45:00.864482 |
| 102 | api          | 0050_ping_kind                                      | 2023-07-18 13:45:00.874787 |
| 103 | api          | 0051_auto_20190104_0908                             | 2023-07-18 13:45:00.886415 |
| 104 | api          | 0052_auto_20190104_1122                             | 2023-07-18 13:45:00.912998 |
| 105 | api          | 0053_check_subject                                  | 2023-07-18 13:45:00.935177 |
| 106 | api          | 0054_auto_20190112_1427                             | 2023-07-18 13:45:00.987842 |
| 107 | api          | 0055_auto_20190112_1427                             | 2023-07-18 13:45:00.998411 |
| 108 | api          | 0056_auto_20190114_0857                             | 2023-07-18 13:45:01.098312 |
| 109 | api          | 0057_auto_20190118_1319                             | 2023-07-18 13:45:01.153874 |
| 110 | api          | 0058_auto_20190312_1716                             | 2023-07-18 13:45:01.161066 |
| 111 | api          | 0059_auto_20190314_1744                             | 2023-07-18 13:45:01.173998 |
| 112 | api          | 0060_tokenbucket                                    | 2023-07-18 13:45:01.182083 |
| 113 | api          | 0061_webhook_values                                 | 2023-07-18 13:45:01.194146 |
| 114 | api          | 0062_auto_20190720_1350                             | 2023-07-18 13:45:01.247485 |
| 115 | api          | 0063_auto_20190903_0901                             | 2023-07-18 13:45:01.267047 |
| 116 | api          | 0064_auto_20191119_1346                             | 2023-07-18 13:45:01.278168 |
| 117 | api          | 0065_auto_20191127_1240                             | 2023-07-18 13:45:01.308723 |
| 118 | api          | 0066_channel_last_error                             | 2023-07-18 13:45:01.327756 |
| 119 | api          | 0067_last_error_values                              | 2023-07-18 13:45:01.343550 |
| 120 | api          | 0068_auto_20200117_1023                             | 2023-07-18 13:45:01.359441 |
| 121 | api          | 0069_auto_20200117_1227                             | 2023-07-18 13:45:01.368345 |
| 122 | api          | 0070_auto_20200411_1310                             | 2023-07-18 13:45:01.378794 |
| 123 | api          | 0071_check_manual_resume                            | 2023-07-18 13:45:01.397989 |
| 124 | api          | 0072_auto_20200701_1007                             | 2023-07-18 13:45:01.448749 |
| 125 | api          | 0073_auto_20200721_1000                             | 2023-07-18 13:45:01.475721 |
| 126 | api          | 0074_auto_20200803_1411                             | 2023-07-18 13:45:01.482664 |
| 127 | api          | 0075_auto_20200805_1004                             | 2023-07-18 13:45:01.532248 |
| 128 | api          | 0076_auto_20201128_0951                             | 2023-07-18 13:45:01.608779 |
| 129 | api          | 0077_auto_20210506_0755                             | 2023-07-18 13:45:01.641336 |
| 130 | api          | 0078_sms_values                                     | 2023-07-18 13:45:01.656720 |
| 131 | api          | 0079_auto_20210907_0918                             | 2023-07-18 13:45:01.691067 |
| 132 | api          | 0080_fill_slug                                      | 2023-07-18 13:45:01.704420 |
| 133 | api          | 0081_channel_last_notify                            | 2023-07-18 13:45:01.723459 |
| 134 | api          | 0082_fill_last_notify                               | 2023-07-18 13:45:01.735594 |
| 135 | api          | 0083_channel_disabled                               | 2023-07-18 13:45:01.753638 |
| 136 | api          | 0084_ping_body_raw                                  | 2023-07-18 13:45:01.768080 |
| 137 | api          | 0085_ping_object_size                               | 2023-07-18 13:45:01.782436 |
| 138 | api          | 0086_remove_check_last_ping_was_fail_and_more       | 2023-07-18 13:45:01.825465 |
| 139 | api          | 0087_check_failure_kw_check_filter_body_and_more    | 2023-07-18 13:45:01.885796 |
| 140 | api          | 0088_fill_kw                                        | 2023-07-18 13:45:01.895894 |
| 141 | api          | 0089_remove_check_subject_remove_check_subject_fail | 2023-07-18 13:45:01.922390 |
| 142 | api          | 0090_alter_check_filter_subject                     | 2023-07-18 13:45:01.963602 |
| 143 | api          | 0091_alter_check_filter_body                        | 2023-07-18 13:45:02.001733 |
| 144 | api          | 0092_alter_check_success_kw                         | 2023-07-18 13:45:02.040186 |
| 145 | api          | 0093_alter_check_failure_kw                         | 2023-07-18 13:45:02.075083 |
| 146 | api          | 0094_ping_rid_alter_channel_kind                    | 2023-07-18 13:45:02.096221 |
| 147 | api          | 0095_check_last_start_rid                           | 2023-07-18 13:45:02.110577 |
| 148 | api          | 0096_check_start_kw_alter_channel_kind              | 2023-07-18 13:45:02.138242 |
| 149 | api          | 0097_alter_channel_kind                             | 2023-07-18 13:45:02.146681 |
| 150 | api          | 0098_channel_last_notify_duration                   | 2023-07-18 13:45:02.163193 |
| 151 | contenttypes | 0002_remove_content_type_name                       | 2023-07-18 13:45:02.203908 |
| 152 | auth         | 0002_alter_permission_name_max_length               | 2023-07-18 13:45:02.228364 |
| 153 | auth         | 0003_alter_user_email_max_length                    | 2023-07-18 13:45:02.241139 |
| 154 | auth         | 0004_alter_user_username_opts                       | 2023-07-18 13:45:02.251003 |
| 155 | auth         | 0005_alter_user_last_login_null                     | 2023-07-18 13:45:02.273851 |
| 156 | auth         | 0006_require_contenttypes_0002                      | 2023-07-18 13:45:02.275427 |
| 157 | auth         | 0007_alter_validators_add_error_messages            | 2023-07-18 13:45:02.286115 |
| 158 | auth         | 0008_alter_user_username_max_length                 | 2023-07-18 13:45:02.301983 |
| 159 | auth         | 0009_alter_user_last_name_max_length                | 2023-07-18 13:45:02.314642 |
| 160 | auth         | 0010_alter_group_name_max_length                    | 2023-07-18 13:45:02.334877 |
| 161 | auth         | 0011_update_proxy_permissions                       | 2023-07-18 13:45:02.401247 |
| 162 | auth         | 0012_alter_user_first_name_max_length               | 2023-07-18 13:45:02.412940 |
| 163 | payments     | 0001_initial                                        | 2023-07-18 13:45:02.441320 |
| 164 | payments     | 0002_subscription_plan_id                           | 2023-07-18 13:45:02.459445 |
| 165 | payments     | 0003_subscription_address_id                        | 2023-07-18 13:45:02.478324 |
| 166 | payments     | 0004_subscription_send_invoices                     | 2023-07-18 13:45:02.499698 |
| 167 | payments     | 0005_subscription_plan_name                         | 2023-07-18 13:45:02.518460 |
| 168 | payments     | 0006_subscription_invoice_email                     | 2023-07-18 13:45:02.539244 |
| 169 | sessions     | 0001_initial                                        | 2023-07-18 13:45:02.553968 |
+-----+--------------+-----------------------------------------------------+----------------------------+
169 rows in set (0,001 sec)

Can you please run the same commands on your database, and show the results?

<!-- gh-comment-id:1640265513 --> @cuu508 commented on GitHub (Jul 18, 2023): As an experiment, I started a MariaDB server, created a database, and applied all migrations. The `accounts_profile` table looks like so for me: ``` MariaDB [hc]> describe accounts_profile; +-------------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | next_report_date | datetime(6) | YES | | NULL | | | user_id | int(11) | YES | UNI | NULL | | | ping_log_limit | int(11) | NO | | NULL | | | token | varchar(128) | NO | | NULL | | | check_limit | int(11) | NO | | NULL | | | last_sms_date | datetime(6) | YES | | NULL | | | sms_limit | int(11) | NO | | NULL | | | sms_sent | int(11) | NO | | NULL | | | team_limit | int(11) | NO | | NULL | | | sort | varchar(20) | NO | | NULL | | | nag_period | bigint(20) | NO | | NULL | | | next_nag_date | datetime(6) | YES | | NULL | | | deletion_notice_date | datetime(6) | YES | | NULL | | | last_active_date | datetime(6) | YES | | NULL | | | call_limit | int(11) | NO | | NULL | | | calls_sent | int(11) | NO | | NULL | | | last_call_date | datetime(6) | YES | | NULL | | | reports | varchar(10) | NO | | NULL | | | tz | varchar(36) | NO | | NULL | | | theme | varchar(10) | YES | | NULL | | | totp | varchar(32) | YES | | NULL | | | totp_created | datetime(6) | YES | | NULL | | | deletion_scheduled_date | datetime(6) | YES | | NULL | | | over_limit_date | datetime(6) | YES | | NULL | | +-------------------------+--------------+------+-----+---------+----------------+ ``` The contents of `django_migrations` table: ``` MariaDB [hc]> select * from django_migrations; +-----+--------------+-----------------------------------------------------+----------------------------+ | id | app | name | applied | +-----+--------------+-----------------------------------------------------+----------------------------+ | 1 | contenttypes | 0001_initial | 2023-07-18 13:44:58.168287 | | 2 | auth | 0001_initial | 2023-07-18 13:44:58.363566 | | 3 | accounts | 0001_initial | 2023-07-18 13:44:58.414748 | | 4 | accounts | 0002_profile_ping_log_limit | 2023-07-18 13:44:58.439951 | | 5 | accounts | 0003_profile_token | 2023-07-18 13:44:58.460076 | | 6 | accounts | 0004_profile_api_key | 2023-07-18 13:44:58.479397 | | 7 | accounts | 0005_auto_20160509_0801 | 2023-07-18 13:44:58.551296 | | 8 | accounts | 0006_profile_current_team | 2023-07-18 13:44:58.566785 | | 9 | accounts | 0007_profile_check_limit | 2023-07-18 13:44:58.582116 | | 10 | accounts | 0008_profile_bill_to | 2023-07-18 13:44:58.596874 | | 11 | accounts | 0009_auto_20170714_1734 | 2023-07-18 13:44:58.667756 | | 12 | accounts | 0010_profile_team_limit | 2023-07-18 13:44:58.680052 | | 13 | accounts | 0011_profile_sort | 2023-07-18 13:44:58.694078 | | 14 | accounts | 0012_auto_20171014_1002 | 2023-07-18 13:44:58.718442 | | 15 | accounts | 0013_remove_profile_team_access_allowed | 2023-07-18 13:44:58.731488 | | 16 | accounts | 0014_auto_20171227_1530 | 2023-07-18 13:44:58.740974 | | 17 | accounts | 0015_auto_20181029_1858 | 2023-07-18 13:44:58.773713 | | 18 | accounts | 0016_remove_profile_bill_to | 2023-07-18 13:44:58.786413 | | 19 | accounts | 0017_auto_20190112_1426 | 2023-07-18 13:44:58.856739 | | 20 | accounts | 0018_auto_20190112_1426 | 2023-07-18 13:44:58.867761 | | 21 | accounts | 0019_project_badge_key | 2023-07-18 13:44:58.879685 | | 22 | accounts | 0020_auto_20190112_1950 | 2023-07-18 13:44:58.887542 | | 23 | accounts | 0021_auto_20190112_2005 | 2023-07-18 13:44:58.912107 | | 24 | accounts | 0022_auto_20190114_0857 | 2023-07-18 13:44:58.972362 | | 25 | accounts | 0023_auto_20190117_1419 | 2023-07-18 13:44:59.010625 | | 26 | accounts | 0024_auto_20190119_1540 | 2023-07-18 13:44:59.048877 | | 27 | accounts | 0025_remove_member_team | 2023-07-18 13:44:59.077602 | | 28 | accounts | 0026_auto_20190204_2042 | 2023-07-18 13:44:59.112014 | | 29 | accounts | 0027_profile_deletion_notice_date | 2023-07-18 13:44:59.125211 | | 30 | accounts | 0028_auto_20191119_1346 | 2023-07-18 13:44:59.144262 | | 31 | accounts | 0029_remove_profile_current_project | 2023-07-18 13:44:59.171696 | | 32 | accounts | 0030_member_transfer_request_date | 2023-07-18 13:44:59.186285 | | 33 | accounts | 0031_auto_20200803_1413 | 2023-07-18 13:44:59.233578 | | 34 | accounts | 0032_auto_20200819_0757 | 2023-07-18 13:44:59.246266 | | 35 | accounts | 0033_member_rw | 2023-07-18 13:44:59.261331 | | 36 | accounts | 0034_credential | 2023-07-18 13:44:59.285372 | | 37 | accounts | 0035_profile_reports | 2023-07-18 13:44:59.304653 | | 38 | accounts | 0036_fill_profile_reports | 2023-07-18 13:44:59.315124 | | 39 | accounts | 0037_profile_tz | 2023-07-18 13:44:59.330384 | | 40 | accounts | 0038_profile_theme | 2023-07-18 13:44:59.342733 | | 41 | accounts | 0039_remove_profile_reports_allowed | 2023-07-18 13:44:59.359159 | | 42 | accounts | 0040_auto_20210722_1244 | 2023-07-18 13:44:59.395855 | | 43 | accounts | 0041_fill_role | 2023-07-18 13:44:59.406069 | | 44 | accounts | 0042_remove_member_rw | 2023-07-18 13:44:59.422315 | | 45 | accounts | 0043_add_role_manager | 2023-07-18 13:44:59.429443 | | 46 | accounts | 0044_auto_20210730_0942 | 2023-07-18 13:44:59.455419 | | 47 | accounts | 0045_auto_20210908_1257 | 2023-07-18 13:44:59.496569 | | 48 | accounts | 0046_profile_deletion_scheduled_date | 2023-07-18 13:44:59.509024 | | 49 | accounts | 0047_profile_over_limit_date | 2023-07-18 13:44:59.520409 | | 50 | admin | 0001_initial | 2023-07-18 13:44:59.555255 | | 51 | admin | 0002_logentry_remove_auto_add | 2023-07-18 13:44:59.562720 | | 52 | admin | 0003_logentry_add_action_flag_choices | 2023-07-18 13:44:59.569333 | | 53 | api | 0001_initial | 2023-07-18 13:44:59.591859 | | 54 | api | 0002_auto_20150616_0732 | 2023-07-18 13:44:59.657022 | | 55 | api | 0003_auto_20150616_1249 | 2023-07-18 13:44:59.683773 | | 56 | api | 0004_auto_20150616_1319 | 2023-07-18 13:44:59.717662 | | 57 | api | 0005_auto_20150630_2021 | 2023-07-18 13:44:59.812480 | | 58 | api | 0006_check_grace | 2023-07-18 13:44:59.829975 | | 59 | api | 0007_ping | 2023-07-18 13:44:59.854255 | | 60 | api | 0008_auto_20150801_1213 | 2023-07-18 13:44:59.865581 | | 61 | api | 0009_auto_20150801_1250 | 2023-07-18 13:44:59.901013 | | 62 | api | 0010_channel | 2023-07-18 13:44:59.960866 | | 63 | api | 0011_notification | 2023-07-18 13:44:59.999697 | | 64 | api | 0012_auto_20150930_1922 | 2023-07-18 13:45:00.013475 | | 65 | api | 0013_auto_20151001_2029 | 2023-07-18 13:45:00.026905 | | 66 | api | 0014_auto_20151019_2039 | 2023-07-18 13:45:00.045163 | | 67 | api | 0015_auto_20151022_1008 | 2023-07-18 13:45:00.067683 | | 68 | api | 0016_auto_20151030_1107 | 2023-07-18 13:45:00.081288 | | 69 | api | 0017_auto_20151117_1032 | 2023-07-18 13:45:00.094116 | | 70 | api | 0018_remove_ping_body | 2023-07-18 13:45:00.107540 | | 71 | api | 0019_check_tags | 2023-07-18 13:45:00.129930 | | 72 | api | 0020_check_n_pings | 2023-07-18 13:45:00.153005 | | 73 | api | 0021_ping_n | 2023-07-18 13:45:00.166818 | | 74 | api | 0022_auto_20160130_2042 | 2023-07-18 13:45:00.198290 | | 75 | api | 0023_auto_20160131_1919 | 2023-07-18 13:45:00.205450 | | 76 | api | 0024_auto_20160203_2227 | 2023-07-18 13:45:00.218126 | | 77 | api | 0025_auto_20160216_1214 | 2023-07-18 13:45:00.229011 | | 78 | api | 0026_auto_20160415_1824 | 2023-07-18 13:45:00.250963 | | 79 | api | 0027_auto_20161213_1059 | 2023-07-18 13:45:00.311755 | | 80 | api | 0028_auto_20170305_1907 | 2023-07-18 13:45:00.328712 | | 81 | api | 0029_auto_20170507_1251 | 2023-07-18 13:45:00.333865 | | 82 | api | 0030_check_last_ping_body | 2023-07-18 13:45:00.355064 | | 83 | api | 0031_auto_20170509_1320 | 2023-07-18 13:45:00.372289 | | 84 | api | 0032_auto_20170608_1158 | 2023-07-18 13:45:00.381143 | | 85 | api | 0033_auto_20170714_1715 | 2023-07-18 13:45:00.396250 | | 86 | api | 0034_auto_20171227_1530 | 2023-07-18 13:45:00.405430 | | 87 | api | 0035_auto_20171229_2008 | 2023-07-18 13:45:00.414556 | | 88 | api | 0036_auto_20180116_2243 | 2023-07-18 13:45:00.440492 | | 89 | api | 0037_auto_20180127_1215 | 2023-07-18 13:45:00.460983 | | 90 | api | 0038_auto_20180318_1306 | 2023-07-18 13:45:00.495394 | | 91 | api | 0039_remove_check_last_ping_body | 2023-07-18 13:45:00.510975 | | 92 | api | 0040_auto_20180517_1336 | 2023-07-18 13:45:00.551023 | | 93 | api | 0041_check_desc | 2023-07-18 13:45:00.571695 | | 94 | api | 0042_auto_20181029_1522 | 2023-07-18 13:45:00.584579 | | 95 | api | 0043_channel_name | 2023-07-18 13:45:00.606332 | | 96 | api | 0044_auto_20181120_2004 | 2023-07-18 13:45:00.679847 | | 97 | api | 0045_flip | 2023-07-18 13:45:00.713862 | | 98 | api | 0046_auto_20181218_1245 | 2023-07-18 13:45:00.749989 | | 99 | api | 0047_auto_20181225_2315 | 2023-07-18 13:45:00.771884 | | 100 | api | 0048_auto_20190102_0737 | 2023-07-18 13:45:00.782988 | | 101 | api | 0049_auto_20190102_0743 | 2023-07-18 13:45:00.864482 | | 102 | api | 0050_ping_kind | 2023-07-18 13:45:00.874787 | | 103 | api | 0051_auto_20190104_0908 | 2023-07-18 13:45:00.886415 | | 104 | api | 0052_auto_20190104_1122 | 2023-07-18 13:45:00.912998 | | 105 | api | 0053_check_subject | 2023-07-18 13:45:00.935177 | | 106 | api | 0054_auto_20190112_1427 | 2023-07-18 13:45:00.987842 | | 107 | api | 0055_auto_20190112_1427 | 2023-07-18 13:45:00.998411 | | 108 | api | 0056_auto_20190114_0857 | 2023-07-18 13:45:01.098312 | | 109 | api | 0057_auto_20190118_1319 | 2023-07-18 13:45:01.153874 | | 110 | api | 0058_auto_20190312_1716 | 2023-07-18 13:45:01.161066 | | 111 | api | 0059_auto_20190314_1744 | 2023-07-18 13:45:01.173998 | | 112 | api | 0060_tokenbucket | 2023-07-18 13:45:01.182083 | | 113 | api | 0061_webhook_values | 2023-07-18 13:45:01.194146 | | 114 | api | 0062_auto_20190720_1350 | 2023-07-18 13:45:01.247485 | | 115 | api | 0063_auto_20190903_0901 | 2023-07-18 13:45:01.267047 | | 116 | api | 0064_auto_20191119_1346 | 2023-07-18 13:45:01.278168 | | 117 | api | 0065_auto_20191127_1240 | 2023-07-18 13:45:01.308723 | | 118 | api | 0066_channel_last_error | 2023-07-18 13:45:01.327756 | | 119 | api | 0067_last_error_values | 2023-07-18 13:45:01.343550 | | 120 | api | 0068_auto_20200117_1023 | 2023-07-18 13:45:01.359441 | | 121 | api | 0069_auto_20200117_1227 | 2023-07-18 13:45:01.368345 | | 122 | api | 0070_auto_20200411_1310 | 2023-07-18 13:45:01.378794 | | 123 | api | 0071_check_manual_resume | 2023-07-18 13:45:01.397989 | | 124 | api | 0072_auto_20200701_1007 | 2023-07-18 13:45:01.448749 | | 125 | api | 0073_auto_20200721_1000 | 2023-07-18 13:45:01.475721 | | 126 | api | 0074_auto_20200803_1411 | 2023-07-18 13:45:01.482664 | | 127 | api | 0075_auto_20200805_1004 | 2023-07-18 13:45:01.532248 | | 128 | api | 0076_auto_20201128_0951 | 2023-07-18 13:45:01.608779 | | 129 | api | 0077_auto_20210506_0755 | 2023-07-18 13:45:01.641336 | | 130 | api | 0078_sms_values | 2023-07-18 13:45:01.656720 | | 131 | api | 0079_auto_20210907_0918 | 2023-07-18 13:45:01.691067 | | 132 | api | 0080_fill_slug | 2023-07-18 13:45:01.704420 | | 133 | api | 0081_channel_last_notify | 2023-07-18 13:45:01.723459 | | 134 | api | 0082_fill_last_notify | 2023-07-18 13:45:01.735594 | | 135 | api | 0083_channel_disabled | 2023-07-18 13:45:01.753638 | | 136 | api | 0084_ping_body_raw | 2023-07-18 13:45:01.768080 | | 137 | api | 0085_ping_object_size | 2023-07-18 13:45:01.782436 | | 138 | api | 0086_remove_check_last_ping_was_fail_and_more | 2023-07-18 13:45:01.825465 | | 139 | api | 0087_check_failure_kw_check_filter_body_and_more | 2023-07-18 13:45:01.885796 | | 140 | api | 0088_fill_kw | 2023-07-18 13:45:01.895894 | | 141 | api | 0089_remove_check_subject_remove_check_subject_fail | 2023-07-18 13:45:01.922390 | | 142 | api | 0090_alter_check_filter_subject | 2023-07-18 13:45:01.963602 | | 143 | api | 0091_alter_check_filter_body | 2023-07-18 13:45:02.001733 | | 144 | api | 0092_alter_check_success_kw | 2023-07-18 13:45:02.040186 | | 145 | api | 0093_alter_check_failure_kw | 2023-07-18 13:45:02.075083 | | 146 | api | 0094_ping_rid_alter_channel_kind | 2023-07-18 13:45:02.096221 | | 147 | api | 0095_check_last_start_rid | 2023-07-18 13:45:02.110577 | | 148 | api | 0096_check_start_kw_alter_channel_kind | 2023-07-18 13:45:02.138242 | | 149 | api | 0097_alter_channel_kind | 2023-07-18 13:45:02.146681 | | 150 | api | 0098_channel_last_notify_duration | 2023-07-18 13:45:02.163193 | | 151 | contenttypes | 0002_remove_content_type_name | 2023-07-18 13:45:02.203908 | | 152 | auth | 0002_alter_permission_name_max_length | 2023-07-18 13:45:02.228364 | | 153 | auth | 0003_alter_user_email_max_length | 2023-07-18 13:45:02.241139 | | 154 | auth | 0004_alter_user_username_opts | 2023-07-18 13:45:02.251003 | | 155 | auth | 0005_alter_user_last_login_null | 2023-07-18 13:45:02.273851 | | 156 | auth | 0006_require_contenttypes_0002 | 2023-07-18 13:45:02.275427 | | 157 | auth | 0007_alter_validators_add_error_messages | 2023-07-18 13:45:02.286115 | | 158 | auth | 0008_alter_user_username_max_length | 2023-07-18 13:45:02.301983 | | 159 | auth | 0009_alter_user_last_name_max_length | 2023-07-18 13:45:02.314642 | | 160 | auth | 0010_alter_group_name_max_length | 2023-07-18 13:45:02.334877 | | 161 | auth | 0011_update_proxy_permissions | 2023-07-18 13:45:02.401247 | | 162 | auth | 0012_alter_user_first_name_max_length | 2023-07-18 13:45:02.412940 | | 163 | payments | 0001_initial | 2023-07-18 13:45:02.441320 | | 164 | payments | 0002_subscription_plan_id | 2023-07-18 13:45:02.459445 | | 165 | payments | 0003_subscription_address_id | 2023-07-18 13:45:02.478324 | | 166 | payments | 0004_subscription_send_invoices | 2023-07-18 13:45:02.499698 | | 167 | payments | 0005_subscription_plan_name | 2023-07-18 13:45:02.518460 | | 168 | payments | 0006_subscription_invoice_email | 2023-07-18 13:45:02.539244 | | 169 | sessions | 0001_initial | 2023-07-18 13:45:02.553968 | +-----+--------------+-----------------------------------------------------+----------------------------+ 169 rows in set (0,001 sec) ``` Can you please run the same commands on your database, and show the results?
Author
Owner

@hamx01 commented on GitHub (Jul 18, 2023):

Here it is:

MariaDB [hc_db]> describe accounts_profile;
+-------------------------+--------------+------+-----+---------+----------------+
| Field                   | Type         | Null | Key | Default | Extra          |
+-------------------------+--------------+------+-----+---------+----------------+
| id                      | int(11)      | NO   | PRI | NULL    | auto_increment |
| next_report_date        | datetime(6)  | YES  |     | NULL    |                |
| user_id                 | int(11)      | YES  | UNI | NULL    |                |
| ping_log_limit          | int(11)      | NO   |     | NULL    |                |
| token                   | varchar(128) | NO   |     | NULL    |                |
| check_limit             | int(11)      | NO   |     | NULL    |                |
| last_sms_date           | datetime(6)  | YES  |     | NULL    |                |
| sms_limit               | int(11)      | NO   |     | NULL    |                |
| sms_sent                | int(11)      | NO   |     | NULL    |                |
| team_limit              | int(11)      | NO   |     | NULL    |                |
| sort                    | varchar(20)  | NO   |     | NULL    |                |
| nag_period              | bigint(20)   | NO   |     | NULL    |                |
| next_nag_date           | datetime(6)  | YES  |     | NULL    |                |
| notice_date             | datetime(6)  | YES  |     | NULL    |                |
| last_active_date        | datetime(6)  | YES  |     | NULL    |                |
| call_limit              | int(11)      | NO   |     | NULL    |                |
| calls_sent              | int(11)      | NO   |     | NULL    |                |
| last_call_date          | datetime(6)  | YES  |     | NULL    |                |
| reports                 | varchar(10)  | NO   |     | NULL    |                |
| tz                      | varchar(36)  | NO   |     | NULL    |                |
| theme                   | varchar(10)  | YES  |     | NULL    |                |
| totp                    | varchar(32)  | YES  |     | NULL    |                |
| totp_created            | datetime(6)  | YES  |     | NULL    |                |
| deletion_notice_date    | datetime(6)  | YES  |     | NULL    |                |
| deletion_scheduled_date | datetime     | NO   |     | NULL    |                |
| over_limit_date         | datetime(6)  | YES  |     | NULL    |                |
+-------------------------+--------------+------+-----+---------+----------------+
26 rows in set (0.002 sec)

And the second command:

MariaDB [hc_db]> select * from django_migrations;
+-----+--------------+-----------------------------------------------------+----------------------------+
| id  | app          | name                                                | applied                    |
+-----+--------------+-----------------------------------------------------+----------------------------+
|   1 | contenttypes | 0001_initial                                        | 2023-04-18 11:36:36.040996 |
|   2 | auth         | 0001_initial                                        | 2023-04-18 11:36:36.297672 |
|   3 | accounts     | 0001_initial                                        | 2023-04-18 11:36:36.342733 |
|   4 | accounts     | 0002_profile_ping_log_limit                         | 2023-04-18 11:36:36.384659 |
|   5 | accounts     | 0003_profile_token                                  | 2023-04-18 11:36:36.415223 |
|   6 | accounts     | 0004_profile_api_key                                | 2023-04-18 11:36:36.444734 |
|   7 | accounts     | 0005_auto_20160509_0801                             | 2023-04-18 11:36:36.578390 |
|   8 | accounts     | 0006_profile_current_team                           | 2023-04-18 11:36:36.614297 |
|   9 | accounts     | 0007_profile_check_limit                            | 2023-04-18 11:36:36.643906 |
|  10 | accounts     | 0008_profile_bill_to                                | 2023-04-18 11:36:36.691991 |
|  11 | accounts     | 0009_auto_20170714_1734                             | 2023-04-18 11:36:36.763081 |
|  12 | accounts     | 0010_profile_team_limit                             | 2023-04-18 11:36:36.794918 |
|  13 | accounts     | 0011_profile_sort                                   | 2023-04-18 11:36:36.823611 |
|  14 | accounts     | 0012_auto_20171014_1002                             | 2023-04-18 11:36:36.869850 |
|  15 | accounts     | 0013_remove_profile_team_access_allowed             | 2023-04-18 11:36:36.936091 |
|  16 | accounts     | 0014_auto_20171227_1530                             | 2023-04-18 11:36:36.947339 |
|  17 | accounts     | 0015_auto_20181029_1858                             | 2023-04-18 11:36:37.004167 |
|  18 | accounts     | 0016_remove_profile_bill_to                         | 2023-04-18 11:36:37.023018 |
|  19 | accounts     | 0017_auto_20190112_1426                             | 2023-04-18 11:36:37.134658 |
|  20 | accounts     | 0018_auto_20190112_1426                             | 2023-04-18 11:36:37.153822 |
|  21 | accounts     | 0019_project_badge_key                              | 2023-04-18 11:36:37.177976 |
|  22 | accounts     | 0020_auto_20190112_1950                             | 2023-04-18 11:36:37.192736 |
|  23 | accounts     | 0021_auto_20190112_2005                             | 2023-04-18 11:36:37.234816 |
|  24 | accounts     | 0022_auto_20190114_0857                             | 2023-04-18 11:36:37.376772 |
|  25 | accounts     | 0023_auto_20190117_1419                             | 2023-04-18 11:36:37.466666 |
|  26 | accounts     | 0024_auto_20190119_1540                             | 2023-04-18 11:36:37.538296 |
|  27 | accounts     | 0025_remove_member_team                             | 2023-04-18 11:36:37.590836 |
|  28 | accounts     | 0026_auto_20190204_2042                             | 2023-04-18 11:36:37.653267 |
|  29 | accounts     | 0027_profile_deletion_notice_date                   | 2023-04-18 11:36:37.680723 |
|  30 | accounts     | 0028_auto_20191119_1346                             | 2023-04-18 11:36:37.706883 |
|  31 | accounts     | 0029_remove_profile_current_project                 | 2023-04-18 11:36:37.766407 |
|  32 | accounts     | 0030_member_transfer_request_date                   | 2023-04-18 11:36:37.792195 |
|  33 | accounts     | 0031_auto_20200803_1413                             | 2023-04-18 11:36:37.888607 |
|  34 | accounts     | 0032_auto_20200819_0757                             | 2023-04-18 11:36:37.912419 |
|  35 | accounts     | 0033_member_rw                                      | 2023-04-18 11:36:37.949215 |
|  36 | accounts     | 0034_credential                                     | 2023-04-18 11:36:37.988009 |
|  37 | accounts     | 0035_profile_reports                                | 2023-04-18 11:36:38.018514 |
|  38 | accounts     | 0036_fill_profile_reports                           | 2023-04-18 11:36:38.031493 |
|  39 | accounts     | 0037_profile_tz                                     | 2023-04-18 11:36:38.058172 |
|  40 | accounts     | 0038_profile_theme                                  | 2023-04-18 11:36:38.077845 |
|  41 | accounts     | 0039_remove_profile_reports_allowed                 | 2023-04-18 11:36:38.100554 |
|  42 | accounts     | 0040_auto_20210722_1244                             | 2023-04-18 11:36:38.168885 |
|  43 | accounts     | 0041_fill_role                                      | 2023-04-18 11:36:38.182076 |
|  44 | accounts     | 0042_remove_member_rw                               | 2023-04-18 11:36:38.204172 |
|  45 | accounts     | 0043_add_role_manager                               | 2023-04-18 11:36:38.215077 |
|  46 | accounts     | 0044_auto_20210730_0942                             | 2023-04-18 11:36:38.252697 |
|  47 | accounts     | 0045_auto_20210908_1257                             | 2023-04-18 11:36:38.315555 |
|  48 | admin        | 0001_initial                                        | 2023-04-18 11:36:38.366226 |
|  49 | admin        | 0002_logentry_remove_auto_add                       | 2023-04-18 11:36:38.383627 |
|  50 | admin        | 0003_logentry_add_action_flag_choices               | 2023-04-18 11:36:38.397123 |
|  51 | api          | 0001_initial                                        | 2023-04-18 11:36:38.451855 |
|  52 | api          | 0002_auto_20150616_0732                             | 2023-04-18 11:36:38.574000 |
|  53 | api          | 0003_auto_20150616_1249                             | 2023-04-18 11:36:38.649571 |
|  54 | api          | 0004_auto_20150616_1319                             | 2023-04-18 11:36:38.742002 |
|  55 | api          | 0005_auto_20150630_2021                             | 2023-04-18 11:36:38.827675 |
|  56 | api          | 0006_check_grace                                    | 2023-04-18 11:36:38.871312 |
|  57 | api          | 0007_ping                                           | 2023-04-18 11:36:38.931116 |
|  58 | api          | 0008_auto_20150801_1213                             | 2023-04-18 11:36:38.949765 |
|  59 | api          | 0009_auto_20150801_1250                             | 2023-04-18 11:36:39.010394 |
|  60 | api          | 0010_channel                                        | 2023-04-18 11:36:39.108289 |
|  61 | api          | 0011_notification                                   | 2023-04-18 11:36:39.252971 |
|  62 | api          | 0012_auto_20150930_1922                             | 2023-04-18 11:36:39.269229 |
|  63 | api          | 0013_auto_20151001_2029                             | 2023-04-18 11:36:39.284239 |
|  64 | api          | 0014_auto_20151019_2039                             | 2023-04-18 11:36:39.311436 |
|  65 | api          | 0015_auto_20151022_1008                             | 2023-04-18 11:36:39.339558 |
|  66 | api          | 0016_auto_20151030_1107                             | 2023-04-18 11:36:39.356176 |
|  67 | api          | 0017_auto_20151117_1032                             | 2023-04-18 11:36:39.371583 |
|  68 | api          | 0018_remove_ping_body                               | 2023-04-18 11:36:39.391863 |
|  69 | api          | 0019_check_tags                                     | 2023-04-18 11:36:39.422339 |
|  70 | api          | 0020_check_n_pings                                  | 2023-04-18 11:36:39.461650 |
|  71 | api          | 0021_ping_n                                         | 2023-04-18 11:36:39.487189 |
|  72 | api          | 0022_auto_20160130_2042                             | 2023-04-18 11:36:39.542678 |
|  73 | api          | 0023_auto_20160131_1919                             | 2023-04-18 11:36:39.552989 |
|  74 | api          | 0024_auto_20160203_2227                             | 2023-04-18 11:36:39.568760 |
|  75 | api          | 0025_auto_20160216_1214                             | 2023-04-18 11:36:39.584242 |
|  76 | api          | 0026_auto_20160415_1824                             | 2023-04-18 11:36:39.613641 |
|  77 | api          | 0027_auto_20161213_1059                             | 2023-04-18 11:36:39.758636 |
|  78 | api          | 0028_auto_20170305_1907                             | 2023-04-18 11:36:39.790454 |
|  79 | api          | 0029_auto_20170507_1251                             | 2023-04-18 11:36:39.800120 |
|  80 | api          | 0030_check_last_ping_body                           | 2023-04-18 11:36:39.831097 |
|  81 | api          | 0031_auto_20170509_1320                             | 2023-04-18 11:36:39.859002 |
|  82 | api          | 0032_auto_20170608_1158                             | 2023-04-18 11:36:39.875815 |
|  83 | api          | 0033_auto_20170714_1715                             | 2023-04-18 11:36:39.892866 |
|  84 | api          | 0034_auto_20171227_1530                             | 2023-04-18 11:36:39.912749 |
|  85 | api          | 0035_auto_20171229_2008                             | 2023-04-18 11:36:39.930079 |
|  86 | api          | 0036_auto_20180116_2243                             | 2023-04-18 11:36:39.975025 |
|  87 | api          | 0037_auto_20180127_1215                             | 2023-04-18 11:36:40.003193 |
|  88 | api          | 0038_auto_20180318_1306                             | 2023-04-18 11:36:40.062935 |
|  89 | api          | 0039_remove_check_last_ping_body                    | 2023-04-18 11:36:40.092886 |
|  90 | api          | 0040_auto_20180517_1336                             | 2023-04-18 11:36:40.161300 |
|  91 | api          | 0041_check_desc                                     | 2023-04-18 11:36:40.195898 |
|  92 | api          | 0042_auto_20181029_1522                             | 2023-04-18 11:36:40.213899 |
|  93 | api          | 0043_channel_name                                   | 2023-04-18 11:36:40.248381 |
|  94 | api          | 0044_auto_20181120_2004                             | 2023-04-18 11:36:40.270063 |
|  95 | api          | 0045_flip                                           | 2023-04-18 11:36:40.326116 |
|  96 | api          | 0046_auto_20181218_1245                             | 2023-04-18 11:36:40.382731 |
|  97 | api          | 0047_auto_20181225_2315                             | 2023-04-18 11:36:40.415069 |
|  98 | api          | 0048_auto_20190102_0737                             | 2023-04-18 11:36:40.492579 |
|  99 | api          | 0049_auto_20190102_0743                             | 2023-04-18 11:36:40.678051 |
| 100 | api          | 0050_ping_kind                                      | 2023-04-18 11:36:40.710285 |
| 101 | api          | 0051_auto_20190104_0908                             | 2023-04-18 11:36:40.730596 |
| 102 | api          | 0052_auto_20190104_1122                             | 2023-04-18 11:36:40.780981 |
| 103 | api          | 0053_check_subject                                  | 2023-04-18 11:36:40.815379 |
| 104 | api          | 0054_auto_20190112_1427                             | 2023-04-18 11:36:40.889588 |
| 105 | api          | 0055_auto_20190112_1427                             | 2023-04-18 11:36:40.914696 |
| 106 | api          | 0056_auto_20190114_0857                             | 2023-04-18 11:36:41.094550 |
| 107 | api          | 0057_auto_20190118_1319                             | 2023-04-18 11:36:41.198905 |
| 108 | api          | 0058_auto_20190312_1716                             | 2023-04-18 11:36:41.211310 |
| 109 | api          | 0059_auto_20190314_1744                             | 2023-04-18 11:36:41.223201 |
| 110 | api          | 0060_tokenbucket                                    | 2023-04-18 11:36:41.233880 |
| 111 | api          | 0061_webhook_values                                 | 2023-04-18 11:36:41.255407 |
| 112 | api          | 0062_auto_20190720_1350                             | 2023-04-18 11:36:41.345352 |
| 113 | api          | 0063_auto_20190903_0901                             | 2023-04-18 11:36:41.382684 |
| 114 | api          | 0064_auto_20191119_1346                             | 2023-04-18 11:36:41.394960 |
| 115 | api          | 0065_auto_20191127_1240                             | 2023-04-18 11:36:41.438372 |
| 116 | api          | 0066_channel_last_error                             | 2023-04-18 11:36:41.472354 |
| 117 | api          | 0067_last_error_values                              | 2023-04-18 11:36:41.496177 |
| 118 | api          | 0068_auto_20200117_1023                             | 2023-04-18 11:36:41.523756 |
| 119 | api          | 0069_auto_20200117_1227                             | 2023-04-18 11:36:41.535158 |
| 120 | api          | 0070_auto_20200411_1310                             | 2023-04-18 11:36:41.556829 |
| 121 | api          | 0071_check_manual_resume                            | 2023-04-18 11:36:41.589083 |
| 122 | api          | 0072_auto_20200701_1007                             | 2023-04-18 11:36:41.668539 |
| 123 | api          | 0073_auto_20200721_1000                             | 2023-04-18 11:36:41.726865 |
| 124 | api          | 0074_auto_20200803_1411                             | 2023-04-18 11:36:41.739291 |
| 125 | api          | 0075_auto_20200805_1004                             | 2023-04-18 11:36:41.820052 |
| 126 | api          | 0076_auto_20201128_0951                             | 2023-04-18 11:36:41.850781 |
| 127 | api          | 0077_auto_20210506_0755                             | 2023-04-18 11:36:41.916310 |
| 128 | api          | 0078_sms_values                                     | 2023-04-18 11:36:41.940483 |
| 129 | api          | 0079_auto_20210907_0918                             | 2023-04-18 11:36:42.053351 |
| 130 | api          | 0080_fill_slug                                      | 2023-04-18 11:36:42.075481 |
| 131 | api          | 0081_channel_last_notify                            | 2023-04-18 11:36:42.096046 |
| 132 | api          | 0082_fill_last_notify                               | 2023-04-18 11:36:42.119087 |
| 133 | api          | 0083_channel_disabled                               | 2023-04-18 11:36:42.143928 |
| 134 | api          | 0084_ping_body_raw                                  | 2023-04-18 11:36:42.163520 |
| 135 | api          | 0085_ping_object_size                               | 2023-04-18 11:36:42.189680 |
| 136 | api          | 0086_remove_check_last_ping_was_fail_and_more       | 2023-04-18 11:36:42.256119 |
| 137 | api          | 0087_check_failure_kw_check_filter_body_and_more    | 2023-04-18 11:36:42.374493 |
| 138 | api          | 0088_fill_kw                                        | 2023-04-18 11:36:42.397111 |
| 139 | api          | 0089_remove_check_subject_remove_check_subject_fail | 2023-04-18 11:36:42.447578 |
| 140 | api          | 0090_alter_check_filter_subject                     | 2023-04-18 11:36:42.505801 |
| 141 | api          | 0091_alter_check_filter_body                        | 2023-04-18 11:36:42.570758 |
| 142 | api          | 0092_alter_check_success_kw                         | 2023-04-18 11:36:42.625950 |
| 143 | api          | 0093_alter_check_failure_kw                         | 2023-04-18 11:36:42.713125 |
| 144 | api          | 0094_ping_rid_alter_channel_kind                    | 2023-04-18 11:36:42.746006 |
| 145 | api          | 0095_check_last_start_rid                           | 2023-04-18 11:36:42.768989 |
| 146 | api          | 0096_check_start_kw_alter_channel_kind              | 2023-04-18 11:36:42.820472 |
| 147 | contenttypes | 0002_remove_content_type_name                       | 2023-04-18 11:36:42.893410 |
| 148 | auth         | 0002_alter_permission_name_max_length               | 2023-04-18 11:36:42.944434 |
| 149 | auth         | 0003_alter_user_email_max_length                    | 2023-04-18 11:36:42.968420 |
| 150 | auth         | 0004_alter_user_username_opts                       | 2023-04-18 11:36:42.982413 |
| 151 | auth         | 0005_alter_user_last_login_null                     | 2023-04-18 11:36:43.008194 |
| 152 | auth         | 0006_require_contenttypes_0002                      | 2023-04-18 11:36:43.010384 |
| 153 | auth         | 0007_alter_validators_add_error_messages            | 2023-04-18 11:36:43.027449 |
| 154 | auth         | 0008_alter_user_username_max_length                 | 2023-04-18 11:36:43.046421 |
| 155 | auth         | 0009_alter_user_last_name_max_length                | 2023-04-18 11:36:43.071836 |
| 156 | auth         | 0010_alter_group_name_max_length                    | 2023-04-18 11:36:43.141099 |
| 157 | auth         | 0011_update_proxy_permissions                       | 2023-04-18 11:36:43.161219 |
| 158 | auth         | 0012_alter_user_first_name_max_length               | 2023-04-18 11:36:43.184241 |
| 159 | payments     | 0001_initial                                        | 2023-04-18 11:36:43.229510 |
| 160 | payments     | 0002_subscription_plan_id                           | 2023-04-18 11:36:43.262767 |
| 161 | payments     | 0003_subscription_address_id                        | 2023-04-18 11:36:43.295302 |
| 162 | payments     | 0004_subscription_send_invoices                     | 2023-04-18 11:36:43.320691 |
| 163 | payments     | 0005_subscription_plan_name                         | 2023-04-18 11:36:43.350907 |
| 164 | payments     | 0006_subscription_invoice_email                     | 2023-04-18 11:36:43.377739 |
| 165 | sessions     | 0001_initial                                        | 2023-04-18 11:36:43.398959 |
| 166 | accounts     | 0046_profile_deletion_scheduled_date                | 2023-07-13 11:29:25.748426 |
| 167 | accounts     | 0047_profile_over_limit_date                        | 2023-07-13 11:29:25.775316 |
| 168 | api          | 0097_alter_channel_kind                             | 2023-07-13 11:29:25.790665 |
+-----+--------------+-----------------------------------------------------+----------------------------+
168 rows in set (0.001 sec)
<!-- gh-comment-id:1640275758 --> @hamx01 commented on GitHub (Jul 18, 2023): Here it is: ``` MariaDB [hc_db]> describe accounts_profile; +-------------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | next_report_date | datetime(6) | YES | | NULL | | | user_id | int(11) | YES | UNI | NULL | | | ping_log_limit | int(11) | NO | | NULL | | | token | varchar(128) | NO | | NULL | | | check_limit | int(11) | NO | | NULL | | | last_sms_date | datetime(6) | YES | | NULL | | | sms_limit | int(11) | NO | | NULL | | | sms_sent | int(11) | NO | | NULL | | | team_limit | int(11) | NO | | NULL | | | sort | varchar(20) | NO | | NULL | | | nag_period | bigint(20) | NO | | NULL | | | next_nag_date | datetime(6) | YES | | NULL | | | notice_date | datetime(6) | YES | | NULL | | | last_active_date | datetime(6) | YES | | NULL | | | call_limit | int(11) | NO | | NULL | | | calls_sent | int(11) | NO | | NULL | | | last_call_date | datetime(6) | YES | | NULL | | | reports | varchar(10) | NO | | NULL | | | tz | varchar(36) | NO | | NULL | | | theme | varchar(10) | YES | | NULL | | | totp | varchar(32) | YES | | NULL | | | totp_created | datetime(6) | YES | | NULL | | | deletion_notice_date | datetime(6) | YES | | NULL | | | deletion_scheduled_date | datetime | NO | | NULL | | | over_limit_date | datetime(6) | YES | | NULL | | +-------------------------+--------------+------+-----+---------+----------------+ 26 rows in set (0.002 sec) ``` And the second command: ``` MariaDB [hc_db]> select * from django_migrations; +-----+--------------+-----------------------------------------------------+----------------------------+ | id | app | name | applied | +-----+--------------+-----------------------------------------------------+----------------------------+ | 1 | contenttypes | 0001_initial | 2023-04-18 11:36:36.040996 | | 2 | auth | 0001_initial | 2023-04-18 11:36:36.297672 | | 3 | accounts | 0001_initial | 2023-04-18 11:36:36.342733 | | 4 | accounts | 0002_profile_ping_log_limit | 2023-04-18 11:36:36.384659 | | 5 | accounts | 0003_profile_token | 2023-04-18 11:36:36.415223 | | 6 | accounts | 0004_profile_api_key | 2023-04-18 11:36:36.444734 | | 7 | accounts | 0005_auto_20160509_0801 | 2023-04-18 11:36:36.578390 | | 8 | accounts | 0006_profile_current_team | 2023-04-18 11:36:36.614297 | | 9 | accounts | 0007_profile_check_limit | 2023-04-18 11:36:36.643906 | | 10 | accounts | 0008_profile_bill_to | 2023-04-18 11:36:36.691991 | | 11 | accounts | 0009_auto_20170714_1734 | 2023-04-18 11:36:36.763081 | | 12 | accounts | 0010_profile_team_limit | 2023-04-18 11:36:36.794918 | | 13 | accounts | 0011_profile_sort | 2023-04-18 11:36:36.823611 | | 14 | accounts | 0012_auto_20171014_1002 | 2023-04-18 11:36:36.869850 | | 15 | accounts | 0013_remove_profile_team_access_allowed | 2023-04-18 11:36:36.936091 | | 16 | accounts | 0014_auto_20171227_1530 | 2023-04-18 11:36:36.947339 | | 17 | accounts | 0015_auto_20181029_1858 | 2023-04-18 11:36:37.004167 | | 18 | accounts | 0016_remove_profile_bill_to | 2023-04-18 11:36:37.023018 | | 19 | accounts | 0017_auto_20190112_1426 | 2023-04-18 11:36:37.134658 | | 20 | accounts | 0018_auto_20190112_1426 | 2023-04-18 11:36:37.153822 | | 21 | accounts | 0019_project_badge_key | 2023-04-18 11:36:37.177976 | | 22 | accounts | 0020_auto_20190112_1950 | 2023-04-18 11:36:37.192736 | | 23 | accounts | 0021_auto_20190112_2005 | 2023-04-18 11:36:37.234816 | | 24 | accounts | 0022_auto_20190114_0857 | 2023-04-18 11:36:37.376772 | | 25 | accounts | 0023_auto_20190117_1419 | 2023-04-18 11:36:37.466666 | | 26 | accounts | 0024_auto_20190119_1540 | 2023-04-18 11:36:37.538296 | | 27 | accounts | 0025_remove_member_team | 2023-04-18 11:36:37.590836 | | 28 | accounts | 0026_auto_20190204_2042 | 2023-04-18 11:36:37.653267 | | 29 | accounts | 0027_profile_deletion_notice_date | 2023-04-18 11:36:37.680723 | | 30 | accounts | 0028_auto_20191119_1346 | 2023-04-18 11:36:37.706883 | | 31 | accounts | 0029_remove_profile_current_project | 2023-04-18 11:36:37.766407 | | 32 | accounts | 0030_member_transfer_request_date | 2023-04-18 11:36:37.792195 | | 33 | accounts | 0031_auto_20200803_1413 | 2023-04-18 11:36:37.888607 | | 34 | accounts | 0032_auto_20200819_0757 | 2023-04-18 11:36:37.912419 | | 35 | accounts | 0033_member_rw | 2023-04-18 11:36:37.949215 | | 36 | accounts | 0034_credential | 2023-04-18 11:36:37.988009 | | 37 | accounts | 0035_profile_reports | 2023-04-18 11:36:38.018514 | | 38 | accounts | 0036_fill_profile_reports | 2023-04-18 11:36:38.031493 | | 39 | accounts | 0037_profile_tz | 2023-04-18 11:36:38.058172 | | 40 | accounts | 0038_profile_theme | 2023-04-18 11:36:38.077845 | | 41 | accounts | 0039_remove_profile_reports_allowed | 2023-04-18 11:36:38.100554 | | 42 | accounts | 0040_auto_20210722_1244 | 2023-04-18 11:36:38.168885 | | 43 | accounts | 0041_fill_role | 2023-04-18 11:36:38.182076 | | 44 | accounts | 0042_remove_member_rw | 2023-04-18 11:36:38.204172 | | 45 | accounts | 0043_add_role_manager | 2023-04-18 11:36:38.215077 | | 46 | accounts | 0044_auto_20210730_0942 | 2023-04-18 11:36:38.252697 | | 47 | accounts | 0045_auto_20210908_1257 | 2023-04-18 11:36:38.315555 | | 48 | admin | 0001_initial | 2023-04-18 11:36:38.366226 | | 49 | admin | 0002_logentry_remove_auto_add | 2023-04-18 11:36:38.383627 | | 50 | admin | 0003_logentry_add_action_flag_choices | 2023-04-18 11:36:38.397123 | | 51 | api | 0001_initial | 2023-04-18 11:36:38.451855 | | 52 | api | 0002_auto_20150616_0732 | 2023-04-18 11:36:38.574000 | | 53 | api | 0003_auto_20150616_1249 | 2023-04-18 11:36:38.649571 | | 54 | api | 0004_auto_20150616_1319 | 2023-04-18 11:36:38.742002 | | 55 | api | 0005_auto_20150630_2021 | 2023-04-18 11:36:38.827675 | | 56 | api | 0006_check_grace | 2023-04-18 11:36:38.871312 | | 57 | api | 0007_ping | 2023-04-18 11:36:38.931116 | | 58 | api | 0008_auto_20150801_1213 | 2023-04-18 11:36:38.949765 | | 59 | api | 0009_auto_20150801_1250 | 2023-04-18 11:36:39.010394 | | 60 | api | 0010_channel | 2023-04-18 11:36:39.108289 | | 61 | api | 0011_notification | 2023-04-18 11:36:39.252971 | | 62 | api | 0012_auto_20150930_1922 | 2023-04-18 11:36:39.269229 | | 63 | api | 0013_auto_20151001_2029 | 2023-04-18 11:36:39.284239 | | 64 | api | 0014_auto_20151019_2039 | 2023-04-18 11:36:39.311436 | | 65 | api | 0015_auto_20151022_1008 | 2023-04-18 11:36:39.339558 | | 66 | api | 0016_auto_20151030_1107 | 2023-04-18 11:36:39.356176 | | 67 | api | 0017_auto_20151117_1032 | 2023-04-18 11:36:39.371583 | | 68 | api | 0018_remove_ping_body | 2023-04-18 11:36:39.391863 | | 69 | api | 0019_check_tags | 2023-04-18 11:36:39.422339 | | 70 | api | 0020_check_n_pings | 2023-04-18 11:36:39.461650 | | 71 | api | 0021_ping_n | 2023-04-18 11:36:39.487189 | | 72 | api | 0022_auto_20160130_2042 | 2023-04-18 11:36:39.542678 | | 73 | api | 0023_auto_20160131_1919 | 2023-04-18 11:36:39.552989 | | 74 | api | 0024_auto_20160203_2227 | 2023-04-18 11:36:39.568760 | | 75 | api | 0025_auto_20160216_1214 | 2023-04-18 11:36:39.584242 | | 76 | api | 0026_auto_20160415_1824 | 2023-04-18 11:36:39.613641 | | 77 | api | 0027_auto_20161213_1059 | 2023-04-18 11:36:39.758636 | | 78 | api | 0028_auto_20170305_1907 | 2023-04-18 11:36:39.790454 | | 79 | api | 0029_auto_20170507_1251 | 2023-04-18 11:36:39.800120 | | 80 | api | 0030_check_last_ping_body | 2023-04-18 11:36:39.831097 | | 81 | api | 0031_auto_20170509_1320 | 2023-04-18 11:36:39.859002 | | 82 | api | 0032_auto_20170608_1158 | 2023-04-18 11:36:39.875815 | | 83 | api | 0033_auto_20170714_1715 | 2023-04-18 11:36:39.892866 | | 84 | api | 0034_auto_20171227_1530 | 2023-04-18 11:36:39.912749 | | 85 | api | 0035_auto_20171229_2008 | 2023-04-18 11:36:39.930079 | | 86 | api | 0036_auto_20180116_2243 | 2023-04-18 11:36:39.975025 | | 87 | api | 0037_auto_20180127_1215 | 2023-04-18 11:36:40.003193 | | 88 | api | 0038_auto_20180318_1306 | 2023-04-18 11:36:40.062935 | | 89 | api | 0039_remove_check_last_ping_body | 2023-04-18 11:36:40.092886 | | 90 | api | 0040_auto_20180517_1336 | 2023-04-18 11:36:40.161300 | | 91 | api | 0041_check_desc | 2023-04-18 11:36:40.195898 | | 92 | api | 0042_auto_20181029_1522 | 2023-04-18 11:36:40.213899 | | 93 | api | 0043_channel_name | 2023-04-18 11:36:40.248381 | | 94 | api | 0044_auto_20181120_2004 | 2023-04-18 11:36:40.270063 | | 95 | api | 0045_flip | 2023-04-18 11:36:40.326116 | | 96 | api | 0046_auto_20181218_1245 | 2023-04-18 11:36:40.382731 | | 97 | api | 0047_auto_20181225_2315 | 2023-04-18 11:36:40.415069 | | 98 | api | 0048_auto_20190102_0737 | 2023-04-18 11:36:40.492579 | | 99 | api | 0049_auto_20190102_0743 | 2023-04-18 11:36:40.678051 | | 100 | api | 0050_ping_kind | 2023-04-18 11:36:40.710285 | | 101 | api | 0051_auto_20190104_0908 | 2023-04-18 11:36:40.730596 | | 102 | api | 0052_auto_20190104_1122 | 2023-04-18 11:36:40.780981 | | 103 | api | 0053_check_subject | 2023-04-18 11:36:40.815379 | | 104 | api | 0054_auto_20190112_1427 | 2023-04-18 11:36:40.889588 | | 105 | api | 0055_auto_20190112_1427 | 2023-04-18 11:36:40.914696 | | 106 | api | 0056_auto_20190114_0857 | 2023-04-18 11:36:41.094550 | | 107 | api | 0057_auto_20190118_1319 | 2023-04-18 11:36:41.198905 | | 108 | api | 0058_auto_20190312_1716 | 2023-04-18 11:36:41.211310 | | 109 | api | 0059_auto_20190314_1744 | 2023-04-18 11:36:41.223201 | | 110 | api | 0060_tokenbucket | 2023-04-18 11:36:41.233880 | | 111 | api | 0061_webhook_values | 2023-04-18 11:36:41.255407 | | 112 | api | 0062_auto_20190720_1350 | 2023-04-18 11:36:41.345352 | | 113 | api | 0063_auto_20190903_0901 | 2023-04-18 11:36:41.382684 | | 114 | api | 0064_auto_20191119_1346 | 2023-04-18 11:36:41.394960 | | 115 | api | 0065_auto_20191127_1240 | 2023-04-18 11:36:41.438372 | | 116 | api | 0066_channel_last_error | 2023-04-18 11:36:41.472354 | | 117 | api | 0067_last_error_values | 2023-04-18 11:36:41.496177 | | 118 | api | 0068_auto_20200117_1023 | 2023-04-18 11:36:41.523756 | | 119 | api | 0069_auto_20200117_1227 | 2023-04-18 11:36:41.535158 | | 120 | api | 0070_auto_20200411_1310 | 2023-04-18 11:36:41.556829 | | 121 | api | 0071_check_manual_resume | 2023-04-18 11:36:41.589083 | | 122 | api | 0072_auto_20200701_1007 | 2023-04-18 11:36:41.668539 | | 123 | api | 0073_auto_20200721_1000 | 2023-04-18 11:36:41.726865 | | 124 | api | 0074_auto_20200803_1411 | 2023-04-18 11:36:41.739291 | | 125 | api | 0075_auto_20200805_1004 | 2023-04-18 11:36:41.820052 | | 126 | api | 0076_auto_20201128_0951 | 2023-04-18 11:36:41.850781 | | 127 | api | 0077_auto_20210506_0755 | 2023-04-18 11:36:41.916310 | | 128 | api | 0078_sms_values | 2023-04-18 11:36:41.940483 | | 129 | api | 0079_auto_20210907_0918 | 2023-04-18 11:36:42.053351 | | 130 | api | 0080_fill_slug | 2023-04-18 11:36:42.075481 | | 131 | api | 0081_channel_last_notify | 2023-04-18 11:36:42.096046 | | 132 | api | 0082_fill_last_notify | 2023-04-18 11:36:42.119087 | | 133 | api | 0083_channel_disabled | 2023-04-18 11:36:42.143928 | | 134 | api | 0084_ping_body_raw | 2023-04-18 11:36:42.163520 | | 135 | api | 0085_ping_object_size | 2023-04-18 11:36:42.189680 | | 136 | api | 0086_remove_check_last_ping_was_fail_and_more | 2023-04-18 11:36:42.256119 | | 137 | api | 0087_check_failure_kw_check_filter_body_and_more | 2023-04-18 11:36:42.374493 | | 138 | api | 0088_fill_kw | 2023-04-18 11:36:42.397111 | | 139 | api | 0089_remove_check_subject_remove_check_subject_fail | 2023-04-18 11:36:42.447578 | | 140 | api | 0090_alter_check_filter_subject | 2023-04-18 11:36:42.505801 | | 141 | api | 0091_alter_check_filter_body | 2023-04-18 11:36:42.570758 | | 142 | api | 0092_alter_check_success_kw | 2023-04-18 11:36:42.625950 | | 143 | api | 0093_alter_check_failure_kw | 2023-04-18 11:36:42.713125 | | 144 | api | 0094_ping_rid_alter_channel_kind | 2023-04-18 11:36:42.746006 | | 145 | api | 0095_check_last_start_rid | 2023-04-18 11:36:42.768989 | | 146 | api | 0096_check_start_kw_alter_channel_kind | 2023-04-18 11:36:42.820472 | | 147 | contenttypes | 0002_remove_content_type_name | 2023-04-18 11:36:42.893410 | | 148 | auth | 0002_alter_permission_name_max_length | 2023-04-18 11:36:42.944434 | | 149 | auth | 0003_alter_user_email_max_length | 2023-04-18 11:36:42.968420 | | 150 | auth | 0004_alter_user_username_opts | 2023-04-18 11:36:42.982413 | | 151 | auth | 0005_alter_user_last_login_null | 2023-04-18 11:36:43.008194 | | 152 | auth | 0006_require_contenttypes_0002 | 2023-04-18 11:36:43.010384 | | 153 | auth | 0007_alter_validators_add_error_messages | 2023-04-18 11:36:43.027449 | | 154 | auth | 0008_alter_user_username_max_length | 2023-04-18 11:36:43.046421 | | 155 | auth | 0009_alter_user_last_name_max_length | 2023-04-18 11:36:43.071836 | | 156 | auth | 0010_alter_group_name_max_length | 2023-04-18 11:36:43.141099 | | 157 | auth | 0011_update_proxy_permissions | 2023-04-18 11:36:43.161219 | | 158 | auth | 0012_alter_user_first_name_max_length | 2023-04-18 11:36:43.184241 | | 159 | payments | 0001_initial | 2023-04-18 11:36:43.229510 | | 160 | payments | 0002_subscription_plan_id | 2023-04-18 11:36:43.262767 | | 161 | payments | 0003_subscription_address_id | 2023-04-18 11:36:43.295302 | | 162 | payments | 0004_subscription_send_invoices | 2023-04-18 11:36:43.320691 | | 163 | payments | 0005_subscription_plan_name | 2023-04-18 11:36:43.350907 | | 164 | payments | 0006_subscription_invoice_email | 2023-04-18 11:36:43.377739 | | 165 | sessions | 0001_initial | 2023-04-18 11:36:43.398959 | | 166 | accounts | 0046_profile_deletion_scheduled_date | 2023-07-13 11:29:25.748426 | | 167 | accounts | 0047_profile_over_limit_date | 2023-07-13 11:29:25.775316 | | 168 | api | 0097_alter_channel_kind | 2023-07-13 11:29:25.790665 | +-----+--------------+-----------------------------------------------------+----------------------------+ 168 rows in set (0.001 sec) ```
Author
Owner

@cuu508 commented on GitHub (Jul 18, 2023):

Did you by any chance add or modify the accounts_profile.deletion_scheduled_date manually?

On my database it is nullable, on yours it is not, and the data types are also different.

Backup the database, then try undoing the migrations that created this column:

docker-compose exec fixme-container-name /opt/healthchecks/manage.py migrate accounts 0045

And the reapplying them:

docker-compose exec fixme-container-name /opt/healthchecks/manage.py migrate
<!-- gh-comment-id:1640294718 --> @cuu508 commented on GitHub (Jul 18, 2023): Did you by any chance add or modify the `accounts_profile.deletion_scheduled_date` manually? On my database it is nullable, on yours it is not, and the data types are also different. Backup the database, then try undoing the migrations that created this column: ``` docker-compose exec fixme-container-name /opt/healthchecks/manage.py migrate accounts 0045 ``` And the reapplying them: ``` docker-compose exec fixme-container-name /opt/healthchecks/manage.py migrate ```
Author
Owner

@hamx01 commented on GitHub (Jul 19, 2023):

Yeah, I modified something manually, after I check the logs and saw that there is some problem with this column. Of course, it was after I changed the image of HC to latest version.

I executed this command that you send me and there is the result:

hc@42b9178816a5:/opt/healthchecks$ python3 manage.py migrate accounts 0045
System check identified some issues:

WARNINGS:
api.Check: (models.W037) MariaDB does not support indexes with conditions.
        HINT: Conditions will be ignored. Silence this warning if you don't care about it.
api.Flip: (models.W037) MariaDB does not support indexes with conditions.
        HINT: Conditions will be ignored. Silence this warning if you don't care about it.
Operations to perform:
  Target specific migration: 0045_auto_20210908_1257, from accounts
Running migrations:
  Rendering model states... DONE
  Unapplying accounts.0047_profile_over_limit_date... OK
  Unapplying accounts.0046_profile_deletion_scheduled_date... OK
hc@42b9178816a5:/opt/healthchecks$ python3 manage.py migrate
System check identified some issues:

WARNINGS:
api.Check: (models.W037) MariaDB does not support indexes with conditions.
        HINT: Conditions will be ignored. Silence this warning if you don't care about it.
api.Flip: (models.W037) MariaDB does not support indexes with conditions.
        HINT: Conditions will be ignored. Silence this warning if you don't care about it.
Operations to perform:
  Apply all migrations: accounts, admin, api, auth, contenttypes, payments, sessions
Running migrations:
  Applying accounts.0046_profile_deletion_scheduled_date... OK
  Applying accounts.0047_profile_over_limit_date... OK

And now it's working, I can open my project, and ping my checks, but label with SECRET_KEY is still there. How can I fix that, and is there something that I need to do else?

<!-- gh-comment-id:1642047863 --> @hamx01 commented on GitHub (Jul 19, 2023): Yeah, I modified something manually, after I check the logs and saw that there is some problem with this column. Of course, it was after I changed the image of HC to latest version. I executed this command that you send me and there is the result: ``` hc@42b9178816a5:/opt/healthchecks$ python3 manage.py migrate accounts 0045 System check identified some issues: WARNINGS: api.Check: (models.W037) MariaDB does not support indexes with conditions. HINT: Conditions will be ignored. Silence this warning if you don't care about it. api.Flip: (models.W037) MariaDB does not support indexes with conditions. HINT: Conditions will be ignored. Silence this warning if you don't care about it. Operations to perform: Target specific migration: 0045_auto_20210908_1257, from accounts Running migrations: Rendering model states... DONE Unapplying accounts.0047_profile_over_limit_date... OK Unapplying accounts.0046_profile_deletion_scheduled_date... OK ``` ``` hc@42b9178816a5:/opt/healthchecks$ python3 manage.py migrate System check identified some issues: WARNINGS: api.Check: (models.W037) MariaDB does not support indexes with conditions. HINT: Conditions will be ignored. Silence this warning if you don't care about it. api.Flip: (models.W037) MariaDB does not support indexes with conditions. HINT: Conditions will be ignored. Silence this warning if you don't care about it. Operations to perform: Apply all migrations: accounts, admin, api, auth, contenttypes, payments, sessions Running migrations: Applying accounts.0046_profile_deletion_scheduled_date... OK Applying accounts.0047_profile_over_limit_date... OK ``` And now it's working, I can open my project, and ping my checks, but label with `SECRET_KEY` is still there. How can I fix that, and is there something that I need to do else?
Author
Owner

@cuu508 commented on GitHub (Jul 19, 2023):

Glad to hear you got it working.

label with SECRET_KEY is still there. How can I fix that, and is there something that I need to do else?

You need to set SECRET_KEY to a random, secret value, see: https://healthchecks.io/docs/self_hosted_configuration/#SECRET_KEY

I would suggest to also review the other available configuration settings: https://healthchecks.io/docs/self_hosted_configuration/
And the "Running in Production" section in README: https://github.com/healthchecks/healthchecks#running-in-production

<!-- gh-comment-id:1642056088 --> @cuu508 commented on GitHub (Jul 19, 2023): Glad to hear you got it working. > label with SECRET_KEY is still there. How can I fix that, and is there something that I need to do else? You need to set SECRET_KEY to a random, secret value, see: https://healthchecks.io/docs/self_hosted_configuration/#SECRET_KEY I would suggest to also review the other available configuration settings: https://healthchecks.io/docs/self_hosted_configuration/ And the "Running in Production" section in README: https://github.com/healthchecks/healthchecks#running-in-production
Author
Owner

@hamx01 commented on GitHub (Jul 20, 2023):

I generated SECRET_KEY with the help of this page https://djecrety.ir/. And pasted it into .env of docker-compose.yml. But it gives nothing. Still, there is some label saying about my secret key.

<!-- gh-comment-id:1643372222 --> @hamx01 commented on GitHub (Jul 20, 2023): I generated `SECRET_KEY` with the help of this page `https://djecrety.ir/`. And pasted it into .env of docker-compose.yml. But it gives nothing. Still, there is some label saying about my secret key.
Author
Owner

@cuu508 commented on GitHub (Jul 20, 2023):

If you see the "Running with an insecure SECRET_KEY value, do not use in production." banner, it means the SECRET_KEY value is not set and Healthchecks is using the default, insecure --- value. The custom value you generated is not being picked up for some reason. When you say ".env of docker-compose.yml" what do you mean precisely? Did you put it right next to the DB_* settings, the ALLOWED_HOSTS setting, etc.?

<!-- gh-comment-id:1643499112 --> @cuu508 commented on GitHub (Jul 20, 2023): If you see the "Running with an insecure SECRET_KEY value, do not use in production." banner, it means the SECRET_KEY value is not set and Healthchecks is using the default, insecure `---` value. The custom value you generated is not being picked up for some reason. When you say ".env of docker-compose.yml" what do you mean precisely? Did you put it right next to the `DB_*` settings, the `ALLOWED_HOSTS` setting, etc.?
Author
Owner

@hamx01 commented on GitHub (Jul 20, 2023):

Did you put it right next to the DB_* settings, the ALLOWED_HOSTS setting, etc.?

Yes, exactly in this place.
I'm using Portainer to deploy docker containers, so I have defined stack that simply mean that I have docker-compose.yml and inside this file I have environment section and there are all env variables are placed.

<!-- gh-comment-id:1643507001 --> @hamx01 commented on GitHub (Jul 20, 2023): > Did you put it right next to the DB_* settings, the ALLOWED_HOSTS setting, etc.? Yes, exactly in this place. I'm using Portainer to deploy docker containers, so I have defined stack that simply mean that I have `docker-compose.yml` and inside this file I have `environment` section and there are all env variables are placed.
Author
Owner

@cuu508 commented on GitHub (Jul 20, 2023):

You can check what SECRET_KEY value the python code sees like so:

docker-compose exec fixme-container-name /opt/healthchecks/manage.py shell
>>> from django.conf import settings
>>> settings.SECRET_KEY
'super-secret'

It should show the same value you specified in docker-compose.yml. If it shows anything different, your task is to debug where and why your SECRET_KEY value is lost.

<!-- gh-comment-id:1643515817 --> @cuu508 commented on GitHub (Jul 20, 2023): You can check what SECRET_KEY value the python code sees like so: ``` docker-compose exec fixme-container-name /opt/healthchecks/manage.py shell >>> from django.conf import settings >>> settings.SECRET_KEY 'super-secret' ``` It should show the same value you specified in `docker-compose.yml`. If it shows anything different, your task is to debug where and why your SECRET_KEY value is lost.
Author
Owner

@hamx01 commented on GitHub (Jul 20, 2023):

Done, found the problem, it was related to quotes.
I had SECRET_KEY='randomsafetystring'
I changed to SECRET_KEY=randomsafetystring
And now in python shell I see the same key that I set in env section.
So for now all problems are solved.

Thank you very much for your help! I really appreciate your support.

<!-- gh-comment-id:1643531653 --> @hamx01 commented on GitHub (Jul 20, 2023): Done, found the problem, it was related to quotes. I had `SECRET_KEY='randomsafetystring'` I changed to `SECRET_KEY=randomsafetystring` And now in python shell I see the same key that I set in env section. So for now all problems are solved. Thank you very much for your help! I really appreciate your support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#606
No description provided.