Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static <T> ApiResponse<T> success(T data, String message) {
}

public static <T> ApiResponse<T> success(T data) {
return success(data, "Request processed successfully");
return success(data, "Request .processed successfully");
}

public static <T> ApiResponse<T> error(String message, Object errors) {
Expand Down
3 changes: 3 additions & 0 deletions auth-service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spring:
enabled: true
baseline-on-migrate: true
locations: filesystem:/app/database/migrations
schemas: auth
default-schema: auth
create-schemas: true

mail:
host: flowforge-mailpit
Expand Down
3 changes: 3 additions & 0 deletions auth-service/target/classes/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spring:
enabled: true
baseline-on-migrate: true
locations: filesystem:/app/database/migrations
schemas: auth
default-schema: auth
create-schemas: true

mail:
host: flowforge-mailpit
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions database/migrations/V1__create_worker_tasks.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE worker_tasks (
id VARCHAR(36) PRIMARY KEY,
type VARCHAR(50) NOT NULL,
payload TEXT NOT NULL,
status VARCHAR(20) NOT NULL DEFAULT 'PENDING',
result TEXT,
error TEXT,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
);
6 changes: 6 additions & 0 deletions database/migrations/V2__add_worker_task_execution_columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE worker_tasks
ADD COLUMN IF NOT EXISTS workflow_execution_id VARCHAR(36),
ADD COLUMN IF NOT EXISTS node_id VARCHAR(36);

ALTER TABLE worker_tasks
ALTER COLUMN payload DROP NOT NULL;
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
- discovery-service
ports:
- "8083:8082"
volumes:
- ./database/auth:/app/database/migrations

db:
image: postgres:16-alpine
Expand Down
Loading