How to fix “AssertionError error: Not implemented” when trying to change Required relation to Optional in PonyORM migrationError when trying to migrate django application with southHow to change a nullable column to not nullable in a Rails migration?South migrate error - relation already existsPonyORM orphaned items when clearing a set that defines one-to-many relationGetting Operational Error when trying to migrate DjangoFixing migration errorHow to select records in the case of a many to many relation with ponyormUUID field in fresh Postgresql DB failing ValidationError: [“'1' is not a valid UUID.”]Migration error on timestamp change fieldPony ORM - Resolve 'Expected string or bytes-like object' error

Multi tool use
Could you fly a Boeing 747 on Venus?
Why is this missile positioned in this odd position? How can it be launched correctly?
Fuel gauge very slow to come up after filling - anything to worry about?
Why do three series connected 1.2 V NiMH batteries read 4.16 V when charged?
How to draw the following image in TikZ?
Will a nuclear country use nuclear weapons if attacked by conventional means by another nuclear country?
What is the difference between turbojet and turbofan engines?
Are there "fewer independent theaters than ever"?
Does a motor suffer damage when resistance to the intended motion is met?
Das ist ja wohl nicht dein Ernst - meaning of particle "ja"
Language to define perfectly a programming problem
Printing the bits of an integer using bitfields and union
Effects of quantum computing on parallel universes
Is a vector space naturally isomorphic to its dual?
If a middle class person is expecting a down turn in the market, what percentage of cash should they hold?
Improving the observation skill & making less blunders
HR trying to sabotage my wife's work because we're married
Translation Golf XLIX - An Accurate Shot
Do Macs come with any programming language available from the Terminal?
How do I find the unknown program enabled during Start-Up?
In a shuttle launch, what would have happened if all three SSMEs failed during flight?
Physical interpretation of complex numbers
Fermat's Last Theorem, mod n
Google just EOLed the original Pixel. How long until it's a brick?
How to fix “AssertionError error: Not implemented” when trying to change Required relation to Optional in PonyORM migration
Error when trying to migrate django application with southHow to change a nullable column to not nullable in a Rails migration?South migrate error - relation already existsPonyORM orphaned items when clearing a set that defines one-to-many relationGetting Operational Error when trying to migrate DjangoFixing migration errorHow to select records in the case of a many to many relation with ponyormUUID field in fresh Postgresql DB failing ValidationError: [“'1' is not a valid UUID.”]Migration error on timestamp change fieldPony ORM - Resolve 'Expected string or bytes-like object' error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm getting AssertionError: Not implemented
when I tried to change a relation between 2 models to Required to Optional.
Steps to reproduce:
I got in my model user = Required(lambda: User)
and then change it to user = Optional(lambda: User, default=None, nullable=True)
python migrate.py make
, no errorspython migrate.py apply
:
Applied:
Traceback (most recent call last):
File "migrate.py", line 8, in <module>
models.db.migrate(**app.config['DB_PARAMS'])
File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
return migrate(self, command)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
return _migrate(db, cmd, **kwargs)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
upgrade_db(new_db, dic)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
op.apply(db)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
assert False, 'Not implemented'
AssertionError: Not implemented
When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.
migration ponyorm pony
add a comment
|
I'm getting AssertionError: Not implemented
when I tried to change a relation between 2 models to Required to Optional.
Steps to reproduce:
I got in my model user = Required(lambda: User)
and then change it to user = Optional(lambda: User, default=None, nullable=True)
python migrate.py make
, no errorspython migrate.py apply
:
Applied:
Traceback (most recent call last):
File "migrate.py", line 8, in <module>
models.db.migrate(**app.config['DB_PARAMS'])
File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
return migrate(self, command)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
return _migrate(db, cmd, **kwargs)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
upgrade_db(new_db, dic)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
op.apply(db)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
assert False, 'Not implemented'
AssertionError: Not implemented
When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.
migration ponyorm pony
add a comment
|
I'm getting AssertionError: Not implemented
when I tried to change a relation between 2 models to Required to Optional.
Steps to reproduce:
I got in my model user = Required(lambda: User)
and then change it to user = Optional(lambda: User, default=None, nullable=True)
python migrate.py make
, no errorspython migrate.py apply
:
Applied:
Traceback (most recent call last):
File "migrate.py", line 8, in <module>
models.db.migrate(**app.config['DB_PARAMS'])
File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
return migrate(self, command)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
return _migrate(db, cmd, **kwargs)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
upgrade_db(new_db, dic)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
op.apply(db)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
assert False, 'Not implemented'
AssertionError: Not implemented
When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.
migration ponyorm pony
I'm getting AssertionError: Not implemented
when I tried to change a relation between 2 models to Required to Optional.
Steps to reproduce:
I got in my model user = Required(lambda: User)
and then change it to user = Optional(lambda: User, default=None, nullable=True)
python migrate.py make
, no errorspython migrate.py apply
:
Applied:
Traceback (most recent call last):
File "migrate.py", line 8, in <module>
models.db.migrate(**app.config['DB_PARAMS'])
File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
return migrate(self, command)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
return _migrate(db, cmd, **kwargs)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
upgrade_db(new_db, dic)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
op.apply(db)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
assert False, 'Not implemented'
AssertionError: Not implemented
When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.
migration ponyorm pony
migration ponyorm pony
asked Mar 28 at 21:20


LouLou
11 bronze badge
11 bronze badge
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407021%2fhow-to-fix-assertionerror-error-not-implemented-when-trying-to-change-require%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407021%2fhow-to-fix-assertionerror-error-not-implemented-when-trying-to-change-require%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Z2Vyjj8rCX1hZ58R7LCZS fLIlkja z7X70nZXfHdZ2z14SM yuozxW8,2S QlZ2wWoY1Nlo61dlRp,beryhoBm23GSJec5lB4lwXj6G