Echomail export
This commit is contained in:
@@ -60,22 +60,6 @@ class Echomail extends Migration
|
||||
|
||||
$table->dateTime('subscribed');
|
||||
});
|
||||
|
||||
Schema::create('address_echomail', function (Blueprint $table) {
|
||||
$table->integer('echomail_id');
|
||||
$table->string('packet');
|
||||
|
||||
$table->integer('address_id');
|
||||
$table->foreign('address_id')->references('id')->on('addresses');
|
||||
});
|
||||
|
||||
Schema::create('address_file', function (Blueprint $table) {
|
||||
$table->integer('filearea_id');
|
||||
$table->boolean('sent');
|
||||
|
||||
$table->integer('address_id');
|
||||
$table->foreign('address_id')->references('id')->on('addresses');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
39
database/migrations/2021_08_22_110731_echomail_export.php
Normal file
39
database/migrations/2021_08_22_110731_echomail_export.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class EchomailExport extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('address_echomail', function (Blueprint $table) {
|
||||
|
||||
$table->string('echomail_id');
|
||||
|
||||
$table->integer('address_id');
|
||||
$table->foreign('address_id')->references('id')->on('addresses');
|
||||
|
||||
$table->datetime('export_date');
|
||||
$table->datetime('sent_date')->nullable();
|
||||
|
||||
$table->unique(['address_id','echomail_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('address_echomail');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user