mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Sorting: Renamed sort set to sort rule
Renamed based on feedback from Tim and Script on Discord. Also fixed flaky test
This commit is contained in:
@ -11,7 +11,7 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('sort_sets', function (Blueprint $table) {
|
||||
Schema::create('sort_rules', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->text('sequence');
|
||||
@ -24,6 +24,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sort_sets');
|
||||
Schema::dropIfExists('sort_rules');
|
||||
}
|
||||
};
|
@ -12,7 +12,7 @@ return new class extends Migration
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('books', function (Blueprint $table) {
|
||||
$table->unsignedInteger('sort_set_id')->nullable()->default(null);
|
||||
$table->unsignedInteger('sort_rule_id')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ return new class extends Migration
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('books', function (Blueprint $table) {
|
||||
$table->dropColumn('sort_set_id');
|
||||
$table->dropColumn('sort_rule_id');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user