Comments (4)
@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.
should be fixed in latest release https://pypi.org/project/django-pg-zero-downtime-migrations/#description
from django-pg-zero-downtime-migrations.
Thank you!
from django-pg-zero-downtime-migrations.
do you have exception stacktrace?
from django-pg-zero-downtime-migrations.
Related Issues (15)
- Postgis support HOT 3
- migrations.DeleteModel locks DB when it has ForeignKey field HOT 5
- Unchanged `db_table` in `RenameModel` raises `Unsafe.ALTER_TABLE_RENAME`
- Publish release to pypi? HOT 2
- Do you have a workflow for running `prettier` on markdown files? HOT 7
- Django 4.1: `'DatabaseSchemaEditor'` has no attribute `'sql_create_sequence'` HOT 2
- Flag for deeming CREATE INDEX operation unsafe HOT 8
- DatabaseSchemaEditorMixin._alter_column_type_sql() takes 5 positional arguments but 7 were given HOT 1
- Drop support for Python 3.6 HOT 4
- When migrating DB from scratch, early ran deferred SQL queries crash HOT 2
- Django 2.2 and PostgreSQL 11 HOT 6
- Add column and set default may be a safe action HOT 5
- Is package really still beta? HOT 4
- Using django-pg-zero-downtime-migrations our table is locked HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-pg-zero-downtime-migrations.