diff --git a/migrations/Version20240612121601.php b/migrations/Version20240612121601.php new file mode 100644 index 0000000..f40fbff --- /dev/null +++ b/migrations/Version20240612121601.php @@ -0,0 +1,35 @@ +addSql('ALTER TABLE profil ADD COLUMN roles CLOB DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE TEMPORARY TABLE __temp__profil AS SELECT id, name, description, password FROM profil'); + $this->addSql('DROP TABLE profil'); + $this->addSql('CREATE TABLE profil (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, password VARCHAR(255) DEFAULT NULL)'); + $this->addSql('INSERT INTO profil (id, name, description, password) SELECT id, name, description, password FROM __temp__profil'); + $this->addSql('DROP TABLE __temp__profil'); + } +} diff --git a/var/data.db b/var/data.db index 2101675..61ef3a9 100644 Binary files a/var/data.db and b/var/data.db differ