1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Page Templates: Changed template field name, added API support

This commit is contained in:
Dan Brown
2023-12-12 12:14:00 +00:00
parent 7ebe7d4e58
commit 4017048555
15 changed files with 67 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ class AddDefaultTemplateToBooks extends Migration
public function up()
{
Schema::table('books', function (Blueprint $table) {
$table->integer('default_template')->nullable()->default(null);
$table->integer('default_template_id')->nullable()->default(null);
});
}
@@ -26,7 +26,7 @@ class AddDefaultTemplateToBooks extends Migration
public function down()
{
Schema::table('books', function (Blueprint $table) {
$table->dropColumn('default_template');
$table->dropColumn('default_template_id');
});
}
}