0

please allow me ask question. very very thank you.

I want to add a db version into ironic, the version in "ironic /db/sqlalchemy/alembic/version/" The db version file name I user ironic-dbsync generate version file name

First: I use ironic-dbsyncto generate this db version number and file name

Inline image 3

Second: write the file then put the file into ironic/db/sqlalchemy/alembic/versions/" path Inline image 2

Third: python setup.py build. run bunild but I cant't see my version file "24ed1d92a2d_add_user_nodes_table.py" , why ? enter image description here

I want add a db version file. can tell me how to do ? very very thank you !!!

Paul
  • 195
  • 2
  • 4
  • 12

1 Answers1

0

We have this item covered in our FAQ. By following it, you'll get an empty template which you can then populate. As an alternative, you can autogenerate your database migration file. There are a few examples in the ironic-inspector documentation, the process must be very close for ironic.

Hope that helps.

Divius
  • 11
  • 1