diff --git a/dbfilestorage/migrations/0001_initial.py b/dbfilestorage/migrations/0001_initial.py index 838d2c6..8ac6821 100644 --- a/dbfilestorage/migrations/0001_initial.py +++ b/dbfilestorage/migrations/0001_initial.py @@ -17,8 +17,10 @@ class Migration(migrations.Migration): name='DBFile', fields=[ ('name', models.CharField(max_length=100, - primary_key=True, serialize=False)), + ('filehash', models.CharField(max_length=32, + primary_key=True, + serialize=False)), ('content_type', models.CharField(max_length=100)), ('b64', models.TextField()), ], diff --git a/dbfilestorage/migrations/0002_add_filehash_rename_files.py b/dbfilestorage/migrations/0002_add_filehash_rename_files.py index 7d3666b..b0b5a82 100644 --- a/dbfilestorage/migrations/0002_add_filehash_rename_files.py +++ b/dbfilestorage/migrations/0002_add_filehash_rename_files.py @@ -27,18 +27,6 @@ class Migration(migrations.Migration): ] operations = [ - migrations.AlterField( - model_name='dbfile', - name='name', - field=models.CharField(max_length=100), - ), - migrations.AddField( - model_name='dbfile', - name='filehash', - field=models.CharField(default='filehash', max_length=32, primary_key=True, serialize=False), - preserve_default=False, - ), - migrations.RunPython(copy_filehash), migrations.RunPython(fix_filename), ] diff --git a/docs/conf.py b/docs/conf.py index f5ec7ca..8c58772 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,9 +54,9 @@ author = u'Tyrel Souza' # built documents. # # The short X.Y version. -version = u'0.2.0' +version = u'0.3.0' # The full version, including alpha/beta/rc tags. -release = u'0.2.0' +release = u'0.3.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index abfc21b..e2ab505 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ class CleanCommand(Command): setup( name="django-dbfilestorage", - version="0.2.0", + version="0.3.0", description="Database backed file storage for testing.", long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.", author="Tyrel Souza",