-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Permet la suppression des caractéristiques spéciales (#101)
- Loading branch information
Showing
11 changed files
with
157 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
|
||
.swal2-content { | ||
color: $text-base-color; | ||
white-space: pre-line; | ||
} | ||
|
||
.swal2-file, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
server/src/database/migrations/20210309100720_change_material_attributes_relationship.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
use Phinx\Migration\AbstractMigration; | ||
|
||
class ChangeMaterialAttributesRelationship extends AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$table = $this->table('material_attributes'); | ||
$table->dropForeignKey('attribute_id')->save(); | ||
|
||
$table->addForeignKey('attribute_id', 'attributes', 'id', [ | ||
'delete' => 'CASCADE', | ||
'update' => 'NO_ACTION', | ||
'constraint' => 'fk_material_attributes_attribute' | ||
])->save(); | ||
} | ||
|
||
public function down() | ||
{ | ||
$table = $this->table('material_attributes'); | ||
$table->dropForeignKey('attribute_id')->save(); | ||
|
||
$table->addForeignKey('attribute_id', 'attributes', 'id', [ | ||
'delete' => 'NO_ACTION', | ||
'update' => 'NO_ACTION', | ||
'constraint' => 'fk_material_attributes_attribute' | ||
])->save(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters