diff --git a/migrations/Version20260520110000.php b/migrations/Version20260520110000.php new file mode 100644 index 0000000..269af63 --- /dev/null +++ b/migrations/Version20260520110000.php @@ -0,0 +1,30 @@ +addSql(<<<'SQL' + INSERT INTO app.platforms (id, type, label, config) + SELECT gen_random_uuid(), 'ebay', 'eBay', '[]' + WHERE NOT EXISTS (SELECT 1 FROM app.platforms WHERE type = 'ebay') + SQL); + } + + public function down(Schema $schema): void + { + $this->addSql("DELETE FROM app.platforms WHERE type = 'ebay'"); + } +}