You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: etc/db-config.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -349,12 +349,12 @@
349
349
public: true
350
350
description: If set, enable teams and jury to send source code to this command. See admin manual for allowed arguments.
351
351
docdescription: See :ref:`printing` for more information.
352
-
- name: event_feed_format
352
+
- name: ccs_api_version
353
353
type: enum
354
-
default_value: 2022-07
355
-
enum_class: App\Utils\EventFeedFormat
354
+
default_value: 2025-draft
355
+
enum_class: App\Utils\CcsApiVersion
356
356
public: false
357
-
description: Format of the event feed to use. See [current draft](https://ccs-specs.icpc.io/draft/contest_api#event-feed) and [versions available](https://ccs-specs.icpc.io/).
357
+
description: Version of the CCS API to use for the API and event feed. See [current draft](https://ccs-specs.icpc.io/draft/contest_api#event-feed) and [versions available](https://ccs-specs.icpc.io/).
return'Update `event_feed_format` config to `ccs_api_version`';
18
+
}
19
+
20
+
publicfunctionup(Schema$schema): void
21
+
{
22
+
// Change key and values to the new format
23
+
$this->addSql('UPDATE configuration SET name = \'ccs_api_version\' WHERE name = \'event_feed_format\' AND value = \'"2020-03"\'');
24
+
$this->addSql('UPDATE configuration SET name = \'ccs_api_version\', value = \'"2023-06"\' WHERE name = \'event_feed_format\' AND value = \'"2022-07"\'');
25
+
}
26
+
27
+
publicfunctiondown(Schema$schema): void
28
+
{
29
+
// Change key and values back to the old format
30
+
$this->addSql('UPDATE configuration SET name = \'event_feed_format\' WHERE name = \'ccs_api_version\' AND value = \'"2020-03"\'');
31
+
$this->addSql('UPDATE configuration SET name = \'event_feed_format\', value = \'"2022-07"\' WHERE name = \'ccs_api_version\' AND value = \'"2023-06"\'');
32
+
// Delete it if we have a non-supported version
33
+
$this->addSql('DELETE FROM configuration WHERE name = \'ccs_api_version\'');
0 commit comments