mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
Fix migration scripts
This commit is contained in:
parent
a9ef743b88
commit
36b6d9e17a
2 changed files with 33 additions and 2 deletions
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddTrackIntoSongs extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('songs', function (Blueprint $table) {
|
||||
$table->integer('track')->after('length')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('songs', function (Blueprint $table) {
|
||||
$table->dropColumn('track');
|
||||
});
|
||||
}
|
||||
}
|
|
@ -46,7 +46,7 @@
|
|||
</div>
|
||||
<div class="form-row" v-show="editSingle">
|
||||
<label>Track</label>
|
||||
<input type="text" v-model="formData.track">
|
||||
<input type="number" min="1" v-model="formData.track">
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="currentView === 'lyrics' && editSingle">
|
||||
|
@ -274,7 +274,7 @@
|
|||
padding: 16px;
|
||||
}
|
||||
|
||||
input[type="text"], textarea {
|
||||
input[type="text"], input[type="number"], textarea {
|
||||
border: 1px solid #ccc;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
|
|
Loading…
Reference in a new issue