class Migration(migrations.Migration): dependencies = [("dadv", "0003_testhappypath")] operations = [ migrations.AddField( model_name="testhappypath", name="dob", field=models.DateField(default=datetime.date(1970, 1, 1)), ), migrations.AddField( model_name="testhappypath", name="rebirth", field=models.DateTimeField(default=django.utils.timezone.now), ), migrations.AddField( model_name="testhappypath", name="married", field=models.DateField(default=datetime.date.today), ), AddDefaultValue(model_name="testhappypath", name="dob", value=datetime.date(1970, 1, 1)), AddDefaultValue(model_name="testhappypath", name="rebirth", value=NOW), AddDefaultValue(model_name="testhappypath", name="married", value=TODAY), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Pictures', fields=[ ('pictureId', models.AutoField(primary_key=True, serialize=False)), ('pictureData', models.TextField(default='https://static.wixstatic.com/media/b77fe464cfc445da9003a5383a3e1acf.jpg')), ('word', models.CharField(default='blank', max_length=255)), ], ), migrations.CreateModel( name='Users', fields=[ ('username', models.CharField(max_length=50, primary_key=True, serialize=False)), ('avatarUrl', models.CharField(default='https://www.kindpng.com/picc/m/421-4212275_transparent-default-avatar-png-avatar-img-png-download.png', max_length=255)), ('language', models.CharField(default='english', max_length=50)), ('score', models.IntegerField(default=0)), ('img', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ufbe.Pictures')), ], ), AddDefaultValue( model_name='pictures', name='pictureData', value="https://static.wixstatic.com/media/b77fe464cfc445da9003a5383a3e1acf.jpg" ), AddDefaultValue( model_name='Users', name='score', value=0 ), AddDefaultValue( model_name='Users', name='img_id', value=1 ), AddDefaultValue( model_name='Users', name='avatarUrl', value='https://www.kindpng.com/picc/m/421-4212275_transparent-default-avatar-png-avatar-img-png-download.png' ), AddDefaultValue( model_name='Users', name='language', value='english' ) ]
class Migration(migrations.Migration): dependencies = [ ("dadv", "0004_time_related_fields"), ] operations = [ migrations.CreateModel( name="TestCustomColumnName", fields=[ ( "id", models.BigAutoField(db_column="custom_id", primary_key=True, serialize=False), ), ( "is_functional", models.BooleanField(db_column="custom_field", default=False), ), ], ), AddDefaultValue(model_name="TestCustomColumnName", name="is_functional", value=False), ]
class Migration(migrations.Migration): dependencies = [("app_add_not_null_column_followed_by_default", "0001_initial")] operations = [ migrations.AddField(model_name="a", name="not_null_field", field=models.IntegerField(default=1)), AddDefaultValue(model_name="a", name="not_null_field", value=1), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='appuser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(blank=True, max_length=255)), ('image', models.ImageField(default='default.jpg', upload_to='profile_pics')), ('gender', models.CharField(blank=True, max_length=10)), ('bio', models.CharField(blank=True, max_length=500)), ('phone', models.CharField(blank=True, max_length=15)), ('num_of_post', models.IntegerField(default=0)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), AddDefaultValue(model_name='appuser', name='id', value=-1), AddDefaultValue(model_name='appuser', name='bio', value="Please add your bio here."), AddDefaultValue(model_name='appuser', name='num_of_post', value="0"), AddDefaultValue(model_name='appuser', name='image', value="profile_pics/default.jpg") ]
class Migration(migrations.Migration): dependencies = [ ('clist', '0020_auto_20191203_1104'), ] operations = [ AddDefaultValue( model_name='contest', name='calculate_time', value=False, ) ]
class Migration(migrations.Migration): dependencies = [ ('clist', '0026_auto_20200214_0028'), ] operations = [ AddDefaultValue( model_name='contest', name='invisible', value=False, ) ]
class Migration(migrations.Migration): dependencies = [ ('clist', '0021_auto_20191203_1108'), ] operations = [ AddDefaultValue( model_name='contest', name='info', value={}, ) ]
class Migration(migrations.Migration): dependencies = [ ("app_make_not_null_with_lib_default", "0001_initial"), ] operations = [ migrations.AlterField( model_name="a", name="col", field=models.CharField(default="avalue", max_length=10), ), AddDefaultValue(model_name="a", name="col", value="avalue"), ]
class Migration(migrations.Migration): dependencies = [("dadv", "0002_testtextdefault")] operations = [ migrations.CreateModel( name="TestHappyPath", fields=[ ("id", models.BigAutoField(primary_key=True, serialize=False)), ("name", models.CharField(default="Happy path", max_length=15)), ], ), AddDefaultValue(model_name="TestHappyPath", name="name", value="Happy path"), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="TestBoolDefault", fields=[ ("id", models.BigAutoField(primary_key=True, serialize=False)), ("is_functional", models.BooleanField(default=False)), ], ), AddDefaultValue("TestBoolDefault", "is_functional", False), ]
class Migration(migrations.Migration): dependencies = [("dadv", "0001_initial")] operations = [ migrations.CreateModel( name="TestTextDefault", fields=[ ("id", models.BigAutoField(primary_key=True, serialize=False)), ("description", models.TextField(default="No description provided")), ], ), AddDefaultValue( model_name="TestTextDefault", name="description", value="No description provided", ), ]
class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("actstream", "0003_add_follow_flag"), ("notifications", "0001_initial"), ] operations = [ migrations.AddField( model_name="notification", name="action_object_content_type", field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="notification_action_object", to="contenttypes.contenttype", ), ), migrations.AddField( model_name="notification", name="action_object_object_id", field=models.CharField(blank=True, db_index=True, max_length=255, null=True), ), migrations.AddField( model_name="notification", name="actor_content_type", field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="notification_actor", to="contenttypes.contenttype", ), ), migrations.AddField( model_name="notification", name="actor_object_id", field=models.CharField(blank=True, db_index=True, max_length=255, null=True), ), migrations.AddField( model_name="notification", name="context_class", field=models.CharField( blank=True, help_text= "Bootstrap contextual class to style notification list items.", max_length=10, null=True, ), ), migrations.AddField( model_name="notification", name="description", field=models.TextField(blank=True, null=True), ), migrations.AddField( model_name="notification", name="message", field=models.CharField(blank=True, db_index=True, max_length=255, null=True), ), migrations.AddField( model_name="notification", name="target_content_type", field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="notification_target", to="contenttypes.contenttype", ), ), migrations.AddField( model_name="notification", name="target_object_id", field=models.CharField(blank=True, db_index=True, max_length=255, null=True), ), migrations.AddField( model_name="notification", name="type", field=models.CharField( choices=[ ("GENERIC", "Generic"), ("FORUM-POST", "Forum post"), ("FORUM-REPLY", "Forum post reply"), ("ACCESS-REQUEST", "Access request"), ("REQUEST-UPDATE", "Request update"), ("NEW-ADMIN", "New admin"), ("EVALUATION-STATUS", "Evaluation status update"), ("MISSING-METHOD", "Missing method"), ("JOB-STATUS", "Job status update"), ("IMAGE-IMPORT", "Image import status update"), ], default="GENERIC", help_text="Of what type is this notification?", max_length=20, ), ), AddDefaultValue(model_name="notification", name="type", value="GENERIC"), migrations.AlterField( model_name="notification", name="action", field=models.ForeignKey( blank=True, help_text="Which action is associated with this notification?", null=True, on_delete=django.db.models.deletion.CASCADE, to="actstream.action", ), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('appUser', '0001_initial'), ('apartment', '0001_initial'), ] operations = [ migrations.CreateModel( name='post', fields=[ ('Post_id', models.AutoField(primary_key=True, serialize=False)), ('Pub_date', models.DateTimeField(verbose_name='data posted')), ('Apartment', models.CharField(max_length=60)), ('Post_title', models.TextField()), ('Description', models.TextField(blank=True)), ('Move_in_date', models.DateField()), ('Move_out_date', models.DateField()), ('Duration', models.IntegerField()), ('Price', models.DecimalField(decimal_places=2, max_digits=7)), ('Exist', models.BooleanField(default=True)), ('Bedroom', models.IntegerField()), ('Bathroom', models.IntegerField()), ('Likes', models.IntegerField()), ('Views', models.IntegerField()), ('ApartmentID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='apartment.apartment')), ('id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='appUser.appUser')), ], ), AddDefaultValue(model_name='post', name='Likes', value=0), AddDefaultValue(model_name='post', name='Exist', value=True), AddDefaultValue(model_name='post', name='Views', value=1), migrations.CreateModel( name='view_history', fields=[ ('View_time', models.DateTimeField(primary_key=True, serialize=False)), ('Post_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='post.post')), ('id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='appUser.appUser')), ], ), migrations.CreateModel( name='search_history', fields=[ ('Search_time', models.DateTimeField(primary_key=True, serialize=False)), ('Move_in_date', models.DateField()), ('Move_out_date', models.DateField()), ('Duration', models.IntegerField()), ('Price', models.DecimalField(decimal_places=2, max_digits=7)), ('Bedroom', models.IntegerField()), ('Bathroom', models.IntegerField()), ('Pet_friendly', models.IntegerField()), ('Printer', models.IntegerField()), ('Swimming_pool', models.IntegerField()), ('Gym', models.IntegerField()), ('id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='appUser.appUser')), ], ), # AddDefaultValue( # model_name = 'search_history', # name = 'Move_in_date', # value = "NULL" # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Move_out_date', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Duration', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Price', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Bedroom', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Bathroom', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Pet_friendly', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Printer', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Swimming_pool', # value = None # ), # AddDefaultValue( # model_name = 'search_history', # name = 'Gym', # value = None # ), ]