Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#10660 fix:cancelling revision file deletes original #10836

Open
wants to merge 1 commit into
base: stable-3_3_0
Choose a base branch
from

Conversation

taslangraham
Copy link
Contributor

For #10660

@taslangraham taslangraham force-pushed the i10660-stable-3_3 branch 4 times, most recently from dd67430 to 4d3308e Compare January 30, 2025 16:09
@taslangraham taslangraham marked this pull request as ready for review January 30, 2025 16:11
@@ -60,7 +60,7 @@ public function up() {
$table->bigInteger('submission_file_id')->unsigned();
$table->bigInteger('file_id')->unsigned();
$table->foreign('submission_file_id')->references('submission_file_id')->on('submission_files');
$table->foreign('file_id')->references('file_id')->on('files');
$table->foreign('file_id')->references('file_id')->on('files')->onDelete('cascade')->onUpdate('cascade');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We aren't using foreign key constraints anywhere in the 3.3.0-x codebase -- and the DBMS might not support it. We also don't introduce database changes between builds on a stable branch. You'll have to find a way to manually implement the cascading delete, I'm afraid!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted. I'll make the necessary updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants