Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 25, 2024
1 parent 8604b71 commit a5e691d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
11 changes: 11 additions & 0 deletions web/app/Models/HostingSubscriptionBackup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class HostingSubscriptionBackup extends Model
{
use HasFactory;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function up(): void
{
Schema::create('backups', function (Blueprint $table) {
$table->id();
$table->bigInteger('hosting_subscription_id')->nullable();

$table->string('backup_type')->nullable();
$table->string('status')->nullable();
$table->string('path')->nullable();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('hosting_subscription_backups', function (Blueprint $table) {
$table->id();

$table->bigInteger('hosting_subscription_id')->nullable();
$table->string('backup_type')->nullable();
$table->string('status')->nullable();
$table->string('path')->nullable();
$table->string('filepath')->nullable();
$table->string('size')->nullable();
$table->string('disk')->nullable();
$table->string('process_id')->nullable();
$table->longText('settings')->nullable();

$table->tinyInteger('queued')->nullable();
$table->timestamp('queued_at')->nullable();

$table->tinyInteger('started')->nullable();
$table->timestamp('started_at')->nullable();

$table->tinyInteger('completed')->nullable();
$table->timestamp('completed_at')->nullable();

$table->tinyInteger('failed')->nullable();
$table->timestamp('failed_at')->nullable();

$table->tinyInteger('cancelled')->nullable();
$table->timestamp('cancelled_at')->nullable();

$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('hosting_subscription_backups');
}
};

0 comments on commit a5e691d

Please sign in to comment.