* 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,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()),
],

View File

@ -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),
]

View File

@ -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.

View File

@ -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",