Skip to content

Commit

Permalink
Remove DIY "migration" script
Browse files Browse the repository at this point in the history
web/update_db.* scripts used several non-worging commands:

* `python manage.py reset` non-working since Django 1.5
* `python tupa/dia2django.py` script removed in b15a827
* `python legacy/RenameFixture.py` didn't do anything in current
  version.
* `python manage.py inspectlegacy` Broken in code formatting commit

inspectlegacy.py is originally vendored from Django's
inspectdb subcommand. It was altered to write changes
directly to legacy/models.py and to do it only for
models already specified in that same legacy/models.py.

Commit f316ada already changed
instructions so that those database updation scripts are not used.

In Django 1.7 there will be real migrations baked in to the framewrok.
  • Loading branch information
ilesoft committed Oct 21, 2024
1 parent 872617e commit f0d3f43
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 432 deletions.
7 changes: 0 additions & 7 deletions web/legacy/RenameFixture.py

This file was deleted.

Empty file removed web/legacy/__init__.py
Empty file.
170 changes: 0 additions & 170 deletions web/legacy/models.py

This file was deleted.

3 changes: 0 additions & 3 deletions web/legacySettings.py

This file was deleted.

7 changes: 1 addition & 6 deletions web/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

try:
import settings #
import legacySettings # Legacy settings for exporting an legacy db
except ImportError:
import sys

Expand All @@ -19,8 +18,4 @@
sys.exit(1)

if __name__ == "__main__":
set = settings
if len(sys.argv):
if sys.argv[1] == "dumpdata":
set = legacySettings
execute_manager(set)
execute_manager(settings)
Loading

0 comments on commit f0d3f43

Please sign in to comment.