mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update contents table
This commit is contained in:
@@ -169,6 +169,7 @@ class Contents
|
||||
'contenttype' => $content['contenttype'],
|
||||
'status' => $content['status'],
|
||||
'ordinal' => $content['ordinal'],
|
||||
'updated_at' => now(),
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -187,6 +188,8 @@ class Contents
|
||||
'contenttype' => $content['contenttype'],
|
||||
'status' => $content['status'],
|
||||
'ordinal' => $content['ordinal'],
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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::table('content', function (Blueprint $table) {
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('content', function (Blueprint $table) {
|
||||
$table->dropTimestamps();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user