Commits

Author Commit Message Labels Comments Date
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added functionality to support unique multi-column indexes. startmigration automatically adds these for any models that specify the unique_together Meta option
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
changed the variable name from field_names to column_names indicating that we want to actual DB column name, not the django field name
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added support for looking at the db_index property of a field and generating a CREATE INDEX statement automatically for it
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added a hook to allow a field to resolve any necessary dependencies before it's attributes are accessed during sql construction
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
M2M fields are now supported by startmigration
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Fix the current very simple tests to work again.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
startmigration is almost working again this patch added support for proper foreign key generation using mock models that hold onto db data we're interested in at the time startmigration was run. TODO: M2Ms aren't output db_index and unique_together values aren't used KNOWN LMITATIONS: startmigration doesn't play well with abstract model inheritance yet. we need to figure out the best way to get at the parent classes to scan their so…
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Allow migrations with no models to work properly.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Fix ./manage.py migrate so you can perform actions on single apps, not everything at once.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Added another TODO note about generate_field_definition needing to support model inheritance
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
startmigration now outputs new Field based migration files. - removed the --all option, this is now replaced with --initial to be more descriptive over its intended use - added a --model option which allows a user to specify one or more models to include in the migration TODO/Known Bugs: - Many-To-Many relationships aren't output correctly yet - Foreign Keys that use strings to identify a model they point to, whether it be 'self', or 'modelName' or 'appName.modelName' aren't interpreted correctly yet.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
changed create_table and add_column to use a list of django.db.models.fields.Field classes to represent fields now. django now takes care of abstracting the SQL create syntax for the various DB's it supports, so far less code that south needs. NOTE: startmigration is currently broken with this change. Need to write automated tests for this stuff, too.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Make delete_column actually work, and wrap all migrations in a transaction.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added support for emitting a post_syncdb signal.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
typo in m2m generated create code that didn't include the ending ']' on the field list
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Make NOT NULL actually work. Patch from Andy McCurdy.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Andy's patch to stop postgres erroring on silly fetchalls.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Andy McCurdy's migrations import patch
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Readme tweaks.
Tags
0.2
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Various changes, which will form the 0.2 release.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Working MySQLness! And proper ./manage.py test integration
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Bad delete_column
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Well, all but rename column works, cause MySQL is annoying.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Fix to remove_column, and start of a MySQL one.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Some more docs, and extra command aliases
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Migration prefix matching, and float support
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Add --fake option for migrations, and give add_column more sensible param names
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Make syncdb actually work this time! I tested it and everything.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Fix ordering on type/null
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Small doc change for the model autogen
  1. Prev
  2. Next