mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-03-18 01:10:01 +01:00
Updated API per Silver's requirements
This commit is contained in:
parent
2684107095
commit
56f477f6de
2 changed files with 16 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class UpdateTrackHash extends Migration {
|
||||||
|
public function up() {
|
||||||
|
foreach (Track::with('user')->get() as $track) {
|
||||||
|
$track->updateHash();
|
||||||
|
$track->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down() {
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue