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
11 changes: 11 additions & 0 deletions app/config/collections/platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,17 @@
'array' => true,
'filters' => [],
],
[
'$id' => 'status',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 100,
'signed' => false,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
],
'indexes' => [
[
Expand Down
3 changes: 3 additions & 0 deletions app/init/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,3 +390,6 @@
// Cache Reconnect
const CACHE_RECONNECT_MAX_RETRIES = 2;
const CACHE_RECONNECT_RETRY_DELAY = 1000;

// Project status
const PROJECT_STATUS_ACTIVE = 'active';
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public function action(string $projectId, string $name, string $teamId, string $
'search' => implode(' ', [$projectId, $name]),
'database' => $dsn,
'labels' => [],
'status' => PROJECT_STATUS_ACTIVE,
]));
} catch (Duplicate) {
throw new Exception(Exception::PROJECT_ALREADY_EXISTS);
Expand Down
Loading