diff --git a/database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php b/database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php deleted file mode 100644 index 3b073dd8987d8d250cd00eeafa5aacc875ed3e2a..0000000000000000000000000000000000000000 --- a/database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php +++ /dev/null @@ -1,40 +0,0 @@ -id(); - $table->timestamps(); - $table->string("descricao_atividade", 50); - $table->float("ch_semanal", 5, 2); - $table->float("ch_maxima", 5, 2); - $table->foreignId('PAD_id') - ->constrained('pads') - ->onUpdate('cascade') - ->onDelete('cascade'); - - $table->softDeletes(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ref_planejamento_ches'); - } -} diff --git a/database/migrations/2022_03_22_113324_create_planejamentos_table.php b/database/migrations/2022_03_22_113324_create_planejamentos_table.php index b2397f4694dd10962adae5991f2ad71ab007890b..68ee6dd36a9513f478c38a428f0bc498c387307a 100644 --- a/database/migrations/2022_03_22_113324_create_planejamentos_table.php +++ b/database/migrations/2022_03_22_113324_create_planejamentos_table.php @@ -22,6 +22,11 @@ class CreatePlanejamentosTable extends Migration $table->integer('ch_maxima')->nullable(); $table->timestamps(); $table->softDeletes(); + + $table->foreignId('pad_id') + ->constrained('pad') + ->onUpdate('cascade') + ->onDelete('cascade'); }); }