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
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;









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 errors
python 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.










share|improve this question
































    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 errors
    python 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.










    share|improve this question




























      0












      0








      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 errors
      python 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.










      share|improve this question















      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 errors
      python 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






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 21:20









      LouLou

      11 bronze badge




      11 bronze badge

























          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
          );



          );














          draft saved

          draft discarded
















          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
















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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
          RbQP,Q2K7bFFpN8cLaNmdIFM7,q,cqOguhY9erd02XQ6Lo,eGRzE,qHgJP,zW,f6rvGR7J,UQNyK4Vi1uWf,rf ZGCG3n6,AzNUe am

          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          위키백과:대문 둘러보기 메뉴기부 안내모바일판 대문크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0CebuanoDeutschEnglishEspañolFrançaisItaliano日本語NederlandsPolskiPortuguêsРусскийSvenskaTiếng ViệtWinaray中文العربيةCatalàفارسیSrpskiУкраїнськаБългарскиНохчийнČeštinaDanskEsperantoEuskaraSuomiעבריתMagyarՀայերենBahasa IndonesiaҚазақшаBaso MinangkabauBahasa MelayuBân-lâm-gúNorskRomânăSrpskohrvatskiSlovenčinaTürkçe