Commits

Show all
Author Commit Message Labels Comments Date
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Better error message when running south with an unsupported DB engine defined.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Remove failing mysql module
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Changes to work with Django 1.0
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Unit tests galore.
Tags
0.3
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Version bump in preparation for release. Also, a contender in "shortest commit ever".
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
shameless author update
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
don't create an index for any column that's also unique. the create table statement should create a unique index by default for this column
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
updated syncdb to work with new migration module detection functions
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Rewrite of migration to use the migrations package not the models module, better working out of which direction an app is going in, and a --merge
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
specify unique as a kwarg in creating unique_together indexes. reads easier
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Do imports correctly, so apps not on pythonpath directly work.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
cleaned up the comment stripping code. should now work in all cases.
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added back all the stuff that r44 accidentily removed
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Make column sql creator use quote name (postgres doesn't like my user column otherwise)
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
added support for startmigration to generate correct field definitions for fields defined in a parent model (abstract or not) updated syncdb to work with the new functions in south.migration fixed a bug where default field values that are strings weren't getting properly quoted in the sql statement
amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
try to get rid of comments in field definitions. still a possible case that will mess us up, tho
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
Slightly nicer error messages.
and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8
A mostly-complete tree-dependency resolver. Still in need of some solid testing.
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.
  1. Prev
  2. Next