Skip to content

Conversation

@dimmastro
Copy link

@dimmastro dimmastro commented Sep 9, 2025

#192

Applying plans.0004_create_user_plans...Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
return self.cursor.execute(sql, params)
File "/opt/homebrew/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py", line 354, in execute
return super().execute(query, params)
sqlite3.OperationalError: no such column: plans_plan.updated_at

default = models.BooleanField(
    help_text=_('Both "Unknown" and "No" means that the plan is not default'),
    default=None,
    db_index=True,
    unique=True,
    null=True,
)

unique=True - incorrect. BooleanField can't be uniqie.

twkrol and others added 7 commits July 31, 2025 14:59
Update 0004_create_user_plans.py
 django-getpaid#192)

Update 0004_create_user_plans.py

django-getpaid#192

Error in:

Running migrations:
  Applying plans.0001_initial... OK
  Applying plans.0002_auto_20180901_1744... OK
  Applying plans.0003_make_plans_unique... OK
  Applying plans.0004_create_user_plans...Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/homebrew/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py", line 354, in execute
    return super().execute(query, params)
sqlite3.OperationalError: no such column: plans_plan.updated_at
    default = models.BooleanField(
        help_text=_('Both "Unknown" and "No" means that the plan is not default'),
        default=None,
        db_index=True,
        unique=True,
        null=True,
    )

unique=True - incorrect. BooleanField can't be uniqie.
fix-issue-192 Fix: subscription expiration check for active plans (fixes django-getpaid#192)
    default = models.BooleanField(
        help_text=_('Both "Unknown" and "No" means that the plan is not default'),
        default=None,
        db_index=True,
        unique=True,
        null=True,
    )

unique=True - incorrect. BooleanField can't be uniqie.
fix-booleanfield-unique: Update models.py
@dimmastro dimmastro changed the title Patch 1 Fixed some errors during installation Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants