mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
trying something
This commit is contained in:
parent
c17980287e
commit
353fee693d
2 changed files with 6 additions and 5 deletions
|
@ -141,10 +141,10 @@ class MigrateOldData extends Command {
|
|||
}
|
||||
|
||||
$this->info('Syncing Playlist Tracks');
|
||||
$oldPlaylistTracks = $oldDb->table('playlist_track');
|
||||
$oldPlaylistTracks = $oldDb->table('playlist_track')->get();
|
||||
foreach ($oldPlaylistTracks as $playlistTrack) {
|
||||
DB::table('playlist_tracks')->insert([
|
||||
'id' => $playlistTrack['id'],
|
||||
'id' => $playlistTrack->id,
|
||||
'created_at' => $playlistTrack->created_at,
|
||||
'updated_at' => $playlistTrack->updated_at,
|
||||
'position' => $playlistTrack->position,
|
||||
|
@ -154,7 +154,7 @@ class MigrateOldData extends Command {
|
|||
}
|
||||
|
||||
$this->info('Syncing Comments');
|
||||
$oldComments = $oldDb->table('comments');
|
||||
$oldComments = $oldDb->table('comments')->get();
|
||||
foreach ($oldComments as $fav) {
|
||||
DB::table('comments')->insert([
|
||||
'id' => $fav->id,
|
||||
|
@ -171,7 +171,7 @@ class MigrateOldData extends Command {
|
|||
}
|
||||
|
||||
$this->info('Syncing Favourites');
|
||||
$oldFavs = $oldDb->table('favourites');
|
||||
$oldFavs = $oldDb->table('favourites')->get();
|
||||
foreach ($oldFavs as $fav) {
|
||||
DB::table('favourites')->insert([
|
||||
'id' => $fav->id,
|
||||
|
|
|
@ -44,7 +44,8 @@
|
|||
} else {
|
||||
$filePath = trim($_GET['file'], '/');
|
||||
$lastModifiedCollection = new AssetCollection([new GlobAsset("styles/*.less")]);
|
||||
$bundle = new AssetCollection([new FileAsset($filePath), new CacheBusterAsset($lastModifiedCollection->getLastModified())], [new LessFilter('node')]);
|
||||
$bundle = new AssetCollection([new FileAsset($filePath), new CacheBusterAsset($lastModifiedCollection->getLastModified())],
|
||||
[new LessFilter(Config::get('app.node'), Config::get('app.node_paths'))]);
|
||||
$bundle->setTargetPath($filePath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue