Ask Your Question

How do you create Django migrations for Askbot?

asked 2019-11-15 18:02:19 -0500

martin-bts's avatar

In askbot/migrations there are (currently) 14 python scripts that set up a database to be used with Askbot. Three of these files load plpgsql scripts from askbot/search/postgresql into the database.

On the one hand, the choice of the plpgsql scripts to use and the content of the migration scripts looks like the migrations were created manually. On the other hand the migration script filenames look like the migrations were create by python makemigrations.

How were/are these migrations scripts created? My guess is they were created manually, but then, why the cryptic timestampy filenames?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-07-17 22:41:19 -0500

Migrations are necessary if you have an old version of the system. If you are going to use a new installation you can delete all those files

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-11-15 18:02:19 -0500

Seen: 2,503 times

Last updated: Nov 15 '19