Fix
This commit is contained in:
@ -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')
|
||||
);
|
||||
});
|
||||
|
||||
|
21
lib/AppInfo/DB/migration.php
Normal file
21
lib/AppInfo/DB/migration.php
Normal 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
|
||||
)");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user