Fix on serializer
Change-Id: Ie2d8c35f29abf119da12e97a09582110e57995d1 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
b22c810fa3
commit
99faa022eb
|
@ -31,6 +31,7 @@ class PresentationSerializer extends SummitEventSerializer
|
||||||
'ProgressNice' => 'progress:json_string',
|
'ProgressNice' => 'progress:json_string',
|
||||||
'Slug' => 'slug:json_string',
|
'Slug' => 'slug:json_string',
|
||||||
'SelectionStatus' => 'selection_status:string',
|
'SelectionStatus' => 'selection_status:string',
|
||||||
|
'WillAllSpeakersAttend' => 'will_all_speakers_attend:json_boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected static $allowed_fields = [
|
protected static $allowed_fields = [
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Version20210429160901 extends AbstractMigration
|
||||||
|
|
||||||
if($schema->hasTable("Presentation")) {
|
if($schema->hasTable("Presentation")) {
|
||||||
$builder->table('Presentation', function (Table $table) {
|
$builder->table('Presentation', function (Table $table) {
|
||||||
$table->boolean("will_all_speakers_attend")->setDefault(false)->setNotnull(true);
|
$table->boolean("WillAllSpeakersAttend")->setDefault(false)->setNotnull(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ class Version20210429160901 extends AbstractMigration
|
||||||
|
|
||||||
if($schema->hasTable("Presentation")) {
|
if($schema->hasTable("Presentation")) {
|
||||||
$builder->table('Presentation', function (Table $table) {
|
$builder->table('Presentation', function (Table $table) {
|
||||||
$table->dropColumn("will_all_speakers_attend");
|
$table->dropColumn("WillAllSpeakersAttend");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue