Code Monkey home page Code Monkey logo

Comments (4)

fennerm avatar fennerm commented on September 24, 2024 1

@tbicr Np - here's one from v0.14:

  File "/Users/fmacrae/code/trip.api.suites/manage.py", line 31, in <module>
    main()
  File "/Users/fmacrae/code/trip.api.suites/manage.py", line 27, in main
    management.execute_from_command_line(sys.argv)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/base.py", line 89, in wrapped
    res = handle_func(*args, **kwargs)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 244, in handle
    post_migrate_state = executor.migrate(
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/migrations/executor.py", line 117, in migrate
    state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/migrations/migration.py", line 126, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/migrations/operations/fields.py", line 104, in database_forwards
    schema_editor.add_field(
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django_zero_downtime_migrations/backends/postgres/schema.py", line 366, in add_field
    super().add_field(model, field)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django/db/backends/base/schema.py", line 476, in add_field
    definition, params = self.column_sql(model, field, include_default=True)
  File "/Users/fmacrae/code/trip.api.suites/.venv/lib/python3.10/site-packages/django_zero_downtime_migrations/backends/postgres/schema.py", line 463, in column_sql
    not (null and self.skip_default_on_alter(field))
AttributeError: 'DatabaseSchemaEditor' object has no attribute 'skip_default_on_alter'

Thanks for taking a look!

from django-pg-zero-downtime-migrations.

tbicr avatar tbicr commented on September 24, 2024 1

should be fixed in latest release https://pypi.org/project/django-pg-zero-downtime-migrations/#description

from django-pg-zero-downtime-migrations.

fennerm avatar fennerm commented on September 24, 2024 1

Thank you!

from django-pg-zero-downtime-migrations.

tbicr avatar tbicr commented on September 24, 2024

do you have exception stacktrace?

from django-pg-zero-downtime-migrations.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.