fix(legacy): remove not null contraint when using default

This fixes the inital schema creation to match as if the old migrations
were always run.

The third_party_track_references.file_id field should not have a not
null constraint while have a default value to 0.
This commit is contained in:
jo 2022-06-05 23:19:03 +02:00 committed by Kyle Robbertze
parent f7bb6e7592
commit 28b9343c77
6 changed files with 8 additions and 8 deletions

View file

@ -531,7 +531,7 @@
<column name="service" phpName="DbService" type="VARCHAR" size="256" required="true" />
<!-- Make foreign ID a VARCHAR field in case a service uses hashes or other non-integer identifiers -->
<column name="foreign_id" phpName="DbForeignId" type="VARCHAR" size="256" />
<column name="file_id" phpName="DbFileId" type="INTEGER" required="true" default="0" />
<column name="file_id" phpName="DbFileId" type="INTEGER" default="0" />
<column name="upload_time" phpName="DbUploadTime" type="TIMESTAMP" />
<column name="status" phpName="DbStatus" type="VARCHAR" size="256" />
<unique name="foreign_id_unique">