This commit is contained in:
greggy
2025-10-07 09:14:37 +02:00
parent fd1d053d65
commit db1df97734
3 changed files with 87 additions and 33 deletions

View File

@@ -27,6 +27,7 @@ final class Version20251006214042 extends AbstractMigration
interfacepasswort VARCHAR(255) NOT NULL,
interface_anfragen_pro_tag SMALLINT UNSIGNED NOT NULL,
user_id VARCHAR(50) NOT NULL,
referal_url VARCHAR(255) DEFAULT NULL,
date_updated DATETIME DEFAULT NULL,
PRIMARY KEY (id)
) DEFAULT CHARACTER SET utf8mb4');
@@ -89,7 +90,7 @@ final class Version20251006214042 extends AbstractMigration
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E948B23AFC FOREIGN KEY (werbenetzwerk_id) REFERENCES werbenetzwerk (id) ON DELETE SET NULL');
// Default data - Werbenetzwerk
$this->addSql('INSERT INTO werbenetzwerk (id, umrechnungskurs, eigenanteil_prozent, interfacepasswort, interface_anfragen_pro_tag, user_id, date_updated) VALUES (1, 0.0000000022, 25, "pAKc34EajovTvsnD6Y6WfhS", 500, "1244", NOW())');
$this->addSql('INSERT INTO werbenetzwerk (id, umrechnungskurs, eigenanteil_prozent, interfacepasswort, interface_anfragen_pro_tag, user_id, referal_url, date_updated) VALUES (1, 0.0000000022, 25, "pAKc34EajovTvsnD6Y6WfhS", 500, "1244", "https://www.adcity.eu?ref=1244", NOW())');
// Default data - Users
$this->addSql('INSERT INTO users (username, email, password, rolle, createdAt) VALUES ("admin", "admin@example.com", "$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi", "admin", NOW())');