Add (post manage)
Add (post country viewing)
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->string('country_locale_slug')->after('country_locale_id')->default('my');
|
||||
$table->foreign('country_locale_slug')->references('slug')->on('country_locales');
|
||||
$table->string('country_locale_slug')->after('country_locale_id')->default('my');
|
||||
$table->foreign('country_locale_slug')->references('slug')->on('country_locales');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ public function up(): void
|
||||
$table->string('featured_image');
|
||||
$table->enum('editor', ['editorjs'])->default('editorjs');
|
||||
$table->json('body')->nullable();
|
||||
$table->enum('post_format',['standard'])->default('standard');
|
||||
$table->enum('post_format', ['standard'])->default('standard');
|
||||
$table->integer('comment_count')->default(0);
|
||||
$table->integer('likes_count')->default(0);
|
||||
$table->enum('status', ['publish','future','draft','private','trash'])->default('draft');
|
||||
$table->enum('status', ['publish', 'future', 'draft', 'private', 'trash'])->default('draft');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('author_id')->references('id')->on('authors');
|
||||
|
||||
Reference in New Issue
Block a user