Skip to content

Commit

Permalink
Merge pull request #4923 from BacLuc/move-dev-camps
Browse files Browse the repository at this point in the history
api/dev-data/data.sql: move camps by 1 year to the future
  • Loading branch information
manuelmeister authored Apr 12, 2024
2 parents f288161 + ac58493 commit 38ad63e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
8 changes: 0 additions & 8 deletions api/migrations/dev-data/Version202404031358.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ public function getDescription(): string {

public function up(Schema $schema): void {
// START PHP CODE
$this->addSql(createTruncateDatabaseCommand());

$statements = getStatementsForMigrationFile();
foreach ($statements as $statement) {
if (trim($statement)) {
$this->addSql($statement);
}
}
// END PHP CODE
}

Expand Down
31 changes: 31 additions & 0 deletions api/migrations/dev-data/Version202404121950.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace DataMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

require_once __DIR__.'/helpers.php';

final class Version202404121950 extends AbstractMigration {
public function getDescription(): string {
return '';
}

public function up(Schema $schema): void {
// START PHP CODE
$this->addSql(createTruncateDatabaseCommand());

$statements = getStatementsForMigrationFile();
foreach ($statements as $statement) {
if (trim($statement)) {
$this->addSql($statement);
}
}
// END PHP CODE
}

public function down(Schema $schema): void {}
}
14 changes: 7 additions & 7 deletions api/migrations/dev-data/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1223,13 +1223,13 @@ INSERT INTO public.category_contenttype (category_id, contenttype_id) VALUES


INSERT INTO public.period (id, description, start, "end", createtime, updatetime, campid) VALUES
('ff755e56fe79', 'Hauptlager', '2024-02-20', '2024-02-20', '2022-01-23 16:19:10', '2022-01-23 16:19:10', '6430aecc5422'),
('a12a9154b43b', 'Hauptlager', '2021-01-01', '2021-01-01', '2022-01-23 16:19:10', '2022-01-23 16:19:10', 'e5027d852487'),
('76be24bce434', 'Hauptlager', '2024-05-10', '2024-05-13', '2023-08-08 07:53:12', '2023-08-08 07:53:12', '3c79b99ab424'),
('fe47dfd2b541', 'Hauptlager', '2024-07-13', '2024-07-20', '2023-08-08 09:22:58', '2023-08-08 09:48:01', '6973c230d6b1'),
('7c39a8ebf82f', 'Main', '2028-01-03', '2028-01-09', '2023-08-12 17:41:55', '2023-08-13 06:23:45', '9c2447aefe38'),
('c085d1d5ddfa', 'Die Jedi-Akademie', '2025-07-14', '2025-07-16', '2023-08-13 06:32:29', '2023-08-13 06:32:29', '0969e3c95dfc'),
('7fa4564a5d5d', 'Main', '2030-01-24', '2030-01-30', '2023-09-29 23:24:38', '2023-09-29 23:24:38', '70ca971c992f');
('ff755e56fe79', 'Hauptlager', '2025-02-20', '2025-02-20', '2022-01-23 16:19:10', '2022-01-23 16:19:10', '6430aecc5422'),
('a12a9154b43b', 'Hauptlager', '2022-01-01', '2022-01-01', '2022-01-23 16:19:10', '2022-01-23 16:19:10', 'e5027d852487'),
('76be24bce434', 'Hauptlager', '2025-05-10', '2025-05-13', '2023-08-08 07:53:12', '2023-08-08 07:53:12', '3c79b99ab424'),
('fe47dfd2b541', 'Hauptlager', '2025-07-13', '2025-07-20', '2023-08-08 09:22:58', '2023-08-08 09:48:01', '6973c230d6b1'),
('7c39a8ebf82f', 'Main', '2029-01-03', '2029-01-09', '2023-08-12 17:41:55', '2023-08-13 06:23:45', '9c2447aefe38'),
('c085d1d5ddfa', 'Die Jedi-Akademie', '2026-07-14', '2026-07-16', '2023-08-13 06:32:29', '2023-08-13 06:32:29', '0969e3c95dfc'),
('7fa4564a5d5d', 'Main', '2031-01-24', '2031-01-30', '2023-09-29 23:24:38', '2023-09-29 23:24:38', '70ca971c992f');



Expand Down

0 comments on commit 38ad63e

Please sign in to comment.