Getting error in india-compliance on giving the command: bench migrate

I gave the following commands:

bench update

bench migrate

On giving the bench migrate command I got this error message

Incompatible Frappe Version:
Please switch to version 16 of Frappe to use the current version of India Compliance.

Why is this happening what to do about this?

Can you share some screenshot for better understanding?

Hope this gives you some idea.

After running the command bench update now I am getting error

App Versions

{
	"erpnext": "15.15.0",
	"frappe": "15.16.1",
	"hrms": "15.12.0",
	"india_compliance": "16.0.0-dev"
}

Route

Form/Item/DW

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1697, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/desk/form/load.py", line 45, in getdoc
    run_onload(doc)
  File "apps/frappe/frappe/desk/form/load.py", line 351, in run_onload
    doc.run_method("onload")
  File "apps/frappe/frappe/model/document.py", line 958, in run_method
    run_webhooks(self, method)
  File "apps/frappe/frappe/integrations/doctype/webhook/__init__.py", line 32, in run_webhooks
    webhooks = frappe.cache.get_value("webhooks", get_all_webhooks)
  File "apps/frappe/frappe/utils/redis_wrapper.py", line 100, in get_value
    val = generator()
  File "apps/frappe/frappe/integrations/doctype/webhook/__init__.py", line 9, in get_all_webhooks
    webhooks_list = frappe.get_all(
  File "apps/frappe/frappe/__init__.py", line 1986, in get_all
    return get_list(doctype, *args, **kwargs)
  File "apps/frappe/frappe/__init__.py", line 1961, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
  File "apps/frappe/frappe/model/db_query.py", line 192, in execute
    result = self.build_and_run()
  File "apps/frappe/frappe/model/db_query.py", line 233, in build_and_run
    return frappe.db.sql(
  File "apps/frappe/frappe/database/database.py", line 234, in sql
    self._cursor.execute(query, values)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 153, in execute
    result = self._query(query)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 322, in _query
    conn.query(q)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 558, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 822, in _read_query_result
    result.read()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1200, in read
    first_packet = self.connection._read_packet()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 772, in _read_packet
    packet.raise_for_error()
  File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'background_jobs_queue' in 'field list'")

Request Data

{
	"type": "GET",
	"args": {
		"doctype": "Item",
		"name": "DW"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.load.getdoc",
	"request_id": null
}

Response Data

{
	"exception": "pymysql.err.OperationalError: (1054, \"Unknown column 'background_jobs_queue' in 'field list'\")",
	"exc_type": "OperationalError"
}

Because you installed the develop branch,

if you erpnext installed in version 15 then india_compliance must be have in version 15.

bench get-app --branch version-15 https://github.com/resilient-tech/india-compliance.git

Reference: Please switch to version 16 of Frappe to use the current version of India Compliance. · Issue #1666 · resilient-tech/india-compliance · GitHub

Yes I know that but when we give the commands
bench update and bench migrate
I start getting the errors stated above.

But I managed to solve the problem using the following commands.

bench switch-to-branch version-15 india_compliance

bench update --patch