Compare commits
11 Commits
ea56e94e19
...
2b46017fb2
| Author | SHA1 | Date |
|---|---|---|
|
|
2b46017fb2 | 5 days ago |
|
|
b1619ab7cf | 5 days ago |
|
|
e43879d71b | 5 days ago |
|
|
b424946220 | 5 days ago |
|
|
f941ff20fc | 5 days ago |
|
|
4601fe1333 | 1 week ago |
|
|
258ac8fd2d | 1 week ago |
|
|
b1fe134caa | 1 week ago |
|
|
fde517f253 | 1 week ago |
|
|
c5a045ec7c | 1 week ago |
|
|
d6b688dbda | 1 week ago |
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('course_types', function (Blueprint $table) {
|
||||||
|
$table->integer('sort')->default(1)->comment('排序');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('course_types', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('sort');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue