File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/CoreBundle/Migrations/Schema/V200 Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,6 @@ public function up(Schema $schema): void
110
110
$ this ->addSql ('ALTER TABLE ticket_assigned_log ADD CONSTRAINT FK_54B65868700047D2 FOREIGN KEY (ticket_id) REFERENCES ticket_ticket (id) ON DELETE CASCADE ' );
111
111
$ this ->addSql ('ALTER TABLE ticket_assigned_log ADD CONSTRAINT FK_54B65868A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE ' );
112
112
113
- // track_course_ranking
114
- $ this ->addSql ('DELETE t1 FROM track_course_ranking t1 INNER JOIN track_course_ranking t2 WHERE t1.id > t2.id AND t1.c_id = t2.c_id ' );
115
- $ this ->addSql ('ALTER TABLE track_course_ranking DROP FOREIGN KEY IF EXISTS FK_4A2D3A7E91D79BD3 ' );
116
- $ this ->addSql ('DROP INDEX IF EXISTS UNIQ_4A2D3A7E91D79BD3 ON track_course_ranking ' );
117
- $ this ->addSql ('ALTER TABLE track_course_ranking ADD CONSTRAINT FK_4A2D3A7E91D79BD3 FOREIGN KEY (c_id) REFERENCES course (id) ON DELETE CASCADE ' );
118
- $ this ->addSql ('CREATE UNIQUE INDEX UNIQ_4A2D3A7E91D79BD3 ON track_course_ranking (c_id) ' );
119
-
120
113
// course_rel_user
121
114
$ this ->addSql ('ALTER TABLE course_rel_user DROP FOREIGN KEY IF EXISTS FK_92CFD9FEA76ED395 ' );
122
115
$ this ->addSql ('ALTER TABLE course_rel_user ADD CONSTRAINT FK_92CFD9FEA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE ' );
You can’t perform that action at this time.
0 commit comments