Skip to content

Commit

Permalink
fixes #706
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Aug 5, 2023
1 parent 540bb7d commit ee910ef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/066_update_workflow_tables_two.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function up()
$db->exec("ALTER TABLE `oc_workflow_config`
Drop COLUMN `displayname`,
Drop COLUMN `workflow`,
MODIFY `used_for` enum('schedule','upload','studio','editor','delete'),
MODIFY `used_for` enum('schedule','upload','studio','delete'),
ADD COLUMN workflow_id int,
ADD UNIQUE KEY oc_workflow_config_unique(config_id, used_for),
ADD CONSTRAINT oc_workflow_config_fk_wf_id FOREIGN KEY (`workflow_id`) REFERENCES `oc_workflow` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Expand Down
24 changes: 24 additions & 0 deletions migrations/075_remove_editor_workflow_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

class RemoveEditorWorkflowConfig extends Migration
{
public function description()
{
return 'Remove "editor" from list of configurable workflows';
}

public function up()
{
$db = DBManager::get();

$db->exec("ALTER TABLE `oc_workflow_config`
MODIFY `used_for` enum('schedule','upload','studio','delete')
");

SimpleOrMap::expireTableScheme();
}

public function down()
{
}
}

0 comments on commit ee910ef

Please sign in to comment.