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
@@ -350,12 +350,12 @@
350
350
public: true
351
351
description: If set, enable teams and jury to send source code to this command. See admin manual for allowed arguments.
352
352
docdescription: See :ref:`printing` for more information.
353
-
- name: event_feed_format
353
+
- name: ccs_api_version
354
354
type: enum
355
-
default_value: 2022-07
356
-
enum_class: App\Utils\EventFeedFormat
355
+
default_value: 2025-draft
356
+
enum_class: App\Utils\CcsApiVersion
357
357
public: false
358
-
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/).
358
+
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