0006_auto_20210911_1439.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Generated by Django 3.2.7 on 2021-09-11 06:39
  2. from django.db import migrations, models
  3. import uuid
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('file', '0005_rename_folder_file_father_folder'),
  7. ]
  8. operations = [
  9. migrations.RemoveField(
  10. model_name='file',
  11. name='file_size',
  12. ),
  13. migrations.RemoveField(
  14. model_name='file',
  15. name='update_time',
  16. ),
  17. migrations.AddField(
  18. model_name='file',
  19. name='key',
  20. field=models.CharField(default=123456, max_length=1024),
  21. preserve_default=False,
  22. ),
  23. migrations.AddField(
  24. model_name='file',
  25. name='upload_time',
  26. field=models.DateTimeField(auto_now=True),
  27. ),
  28. migrations.AlterField(
  29. model_name='file',
  30. name='file_id',
  31. field=models.UUIDField(auto_created=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False),
  32. ),
  33. ]