-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the meta field optional in Asset & Bed Tables (#769)
* Make the meta field optional in asset * Make the meta field optional in bed tables * Remove default in optional meta fields * Update migrations * Remove null and keep defaults * Update migrations * Fix migrations
- Loading branch information
Showing
3 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 2.2.11 on 2022-05-27 17:54 | ||
|
||
import django.contrib.postgres.fields.jsonb | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('facility', '0295_merge_20220527_1430'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='facilitycapacity', | ||
options={'verbose_name_plural': 'Facility Capacities'}, | ||
), | ||
migrations.AlterField( | ||
model_name='asset', | ||
name='asset_class', | ||
field=models.IntegerField(blank=True, choices=[('ONVIF', 'onvif'), ('HL7MONITOR', 'hl7monitor')], default=None, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='asset', | ||
name='meta', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='assetbed', | ||
name='meta', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='bed', | ||
name='meta', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='consultationbed', | ||
name='meta', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters