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:
parent
f7bb6e7592
commit
28b9343c77
6 changed files with 8 additions and 8 deletions
|
@ -42,7 +42,7 @@ class ThirdPartyTrackReferencesTableMap extends TableMap
|
|||
$this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null);
|
||||
$this->addColumn('service', 'DbService', 'VARCHAR', true, 256, null);
|
||||
$this->addColumn('foreign_id', 'DbForeignId', 'VARCHAR', false, 256, null);
|
||||
$this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', true, null, 0);
|
||||
$this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_files', 'id', false, null, 0);
|
||||
$this->addColumn('upload_time', 'DbUploadTime', 'TIMESTAMP', false, null, null);
|
||||
$this->addColumn('status', 'DbStatus', 'VARCHAR', false, 256, null);
|
||||
// validators
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue