Feature: Add Shopify product importer and table-rate shipping; bump to 0.2.0 #1
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('import_mappings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('source');
|
||||
$table->string('source_type');
|
||||
$table->string('external_id');
|
||||
$table->morphs('model');
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['source', 'source_type', 'external_id']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('import_mappings');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user