Update contents table

This commit is contained in:
DariusIII
2025-04-10 22:36:58 +02:00
parent d17342db86
commit ebdd767d06
2 changed files with 31 additions and 0 deletions
+3
View File
@@ -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();
});
}
};