mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-04-01 00:35:30 +02: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');
|
$this->info('Syncing Playlist Tracks');
|
||||||
$oldPlaylistTracks = $oldDb->table('playlist_track');
|
$oldPlaylistTracks = $oldDb->table('playlist_track')->get();
|
||||||
foreach ($oldPlaylistTracks as $playlistTrack) {
|
foreach ($oldPlaylistTracks as $playlistTrack) {
|
||||||
DB::table('playlist_tracks')->insert([
|
DB::table('playlist_tracks')->insert([
|
||||||
'id' => $playlistTrack['id'],
|
'id' => $playlistTrack->id,
|
||||||
'created_at' => $playlistTrack->created_at,
|
'created_at' => $playlistTrack->created_at,
|
||||||
'updated_at' => $playlistTrack->updated_at,
|
'updated_at' => $playlistTrack->updated_at,
|
||||||
'position' => $playlistTrack->position,
|
'position' => $playlistTrack->position,
|
||||||
|
@ -154,7 +154,7 @@ class MigrateOldData extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->info('Syncing Comments');
|
$this->info('Syncing Comments');
|
||||||
$oldComments = $oldDb->table('comments');
|
$oldComments = $oldDb->table('comments')->get();
|
||||||
foreach ($oldComments as $fav) {
|
foreach ($oldComments as $fav) {
|
||||||
DB::table('comments')->insert([
|
DB::table('comments')->insert([
|
||||||
'id' => $fav->id,
|
'id' => $fav->id,
|
||||||
|
@ -171,7 +171,7 @@ class MigrateOldData extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->info('Syncing Favourites');
|
$this->info('Syncing Favourites');
|
||||||
$oldFavs = $oldDb->table('favourites');
|
$oldFavs = $oldDb->table('favourites')->get();
|
||||||
foreach ($oldFavs as $fav) {
|
foreach ($oldFavs as $fav) {
|
||||||
DB::table('favourites')->insert([
|
DB::table('favourites')->insert([
|
||||||
'id' => $fav->id,
|
'id' => $fav->id,
|
||||||
|
|
|
@ -44,7 +44,8 @@
|
||||||
} else {
|
} else {
|
||||||
$filePath = trim($_GET['file'], '/');
|
$filePath = trim($_GET['file'], '/');
|
||||||
$lastModifiedCollection = new AssetCollection([new GlobAsset("styles/*.less")]);
|
$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);
|
$bundle->setTargetPath($filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue