This commit is contained in:
Patrick Niebeling
2025-03-12 11:00:29 +01:00
parent 054cdb70c8
commit 4e4ae2b372
5 changed files with 50 additions and 9 deletions

View File

@ -17,7 +17,8 @@ class Application extends App {
return new SettingsController(
$c->query('OCP\IRequest'),
$c->query('OCP\IUserSession'),
$c->query('OCA\Deckflow\Service\WorkflowService')
$c->query('OCA\Deckflow\Service\WorkflowService'),
$c->query('OCP\IDBConnection')
);
});

View File

@ -0,0 +1,21 @@
<?php
namespace OCA\Deckflow\DB;
use OCP\DB\ISQLiteConnection;
class Migration {
/**
* Erstellt die Tabelle für Workflow-Konfigurationen
* @param ISQLiteConnection $connection
*/
public function createWorkflowConfigTable(ISQLiteConnection $connection) {
$connection->query("CREATE TABLE IF NOT EXISTS *PREFIX*deckflow_workflows (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT NOT NULL,
deck_id TEXT NOT NULL,
source_stack_id TEXT NOT NULL,
target_stack_id TEXT NOT NULL
)");
}
}