* redo migrations

* merge and new version
This commit is contained in:
Tyrel Souza 2017-01-20 15:23:48 -05:00 committed by GitHub
parent 1cb4268d5f
commit f35406d847
4 changed files with 6 additions and 16 deletions

View File

@ -17,6 +17,8 @@ class Migration(migrations.Migration):
name='DBFile', name='DBFile',
fields=[ fields=[
('name', models.CharField(max_length=100, ('name', models.CharField(max_length=100,
serialize=False)),
('filehash', models.CharField(max_length=32,
primary_key=True, primary_key=True,
serialize=False)), serialize=False)),
('content_type', models.CharField(max_length=100)), ('content_type', models.CharField(max_length=100)),

View File

@ -27,18 +27,6 @@ class Migration(migrations.Migration):
] ]
operations = [ 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(copy_filehash),
migrations.RunPython(fix_filename), migrations.RunPython(fix_filename),
] ]

View File

@ -54,9 +54,9 @@ author = u'Tyrel Souza'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = u'0.2.0' version = u'0.3.0'
# The full version, including alpha/beta/rc tags. # 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 # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@ -24,7 +24,7 @@ class CleanCommand(Command):
setup( setup(
name="django-dbfilestorage", name="django-dbfilestorage",
version="0.2.0", version="0.3.0",
description="Database backed file storage for testing.", description="Database backed file storage for testing.",
long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.", long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.",
author="Tyrel Souza", author="Tyrel Souza",