preparations for lastfm
This commit is contained in:
parent
e2e62e7e25
commit
f224d258ef
4 changed files with 112 additions and 4 deletions
|
@ -20,7 +20,8 @@
|
|||
"swiftmailer/swiftmailer": "^5.4",
|
||||
"corneltek/cliframework": "^3.0",
|
||||
"illuminate/filesystem": "^5.2",
|
||||
"erusev/parsedown": "^1.6"
|
||||
"erusev/parsedown": "^1.6",
|
||||
"matto1990/lastfm-api": "^1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
|
|
56
composer.lock
generated
56
composer.lock
generated
|
@ -4,8 +4,8 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "b52ed9a48bc73bde0940da07200c9f92",
|
||||
"content-hash": "ee30eebf11e0d54fe7b19abbd4f134ea",
|
||||
"hash": "13c2ef04ff1ab1ec56de6ba0e0b6d618",
|
||||
"content-hash": "0271a89a85f0cb235b06b4473e71a45c",
|
||||
"packages": [
|
||||
{
|
||||
"name": "corneltek/class-template",
|
||||
|
@ -1018,6 +1018,58 @@
|
|||
"homepage": "http://laravel.com",
|
||||
"time": "2016-08-05 14:49:58"
|
||||
},
|
||||
{
|
||||
"name": "matto1990/lastfm-api",
|
||||
"version": "v1.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/matto1990/PHP-Last.fm-API.git",
|
||||
"reference": "a02fadc09ebb6cfedc4236b622b02c254247a94e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/matto1990/PHP-Last.fm-API/zipball/a02fadc09ebb6cfedc4236b622b02c254247a94e",
|
||||
"reference": "a02fadc09ebb6cfedc4236b622b02c254247a94e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"php": ">=5.3.3",
|
||||
"phpunit/phpunit": "~4.8",
|
||||
"vlucas/phpdotenv": "*"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"LastFmApi\\": "src/lastfmapi/",
|
||||
"Tests\\": "tests"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Marcos",
|
||||
"email": "devilcius@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Matt",
|
||||
"email": "matt@oakes.ws"
|
||||
}
|
||||
],
|
||||
"description": "Last.fm webservice client",
|
||||
"homepage": "https://github.com/matto1990/PHP-Last.fm-API",
|
||||
"keywords": [
|
||||
"api",
|
||||
"last.fm",
|
||||
"webservice client"
|
||||
],
|
||||
"time": "2016-07-22 13:10:12"
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "1.21.0",
|
||||
|
|
|
@ -48,7 +48,7 @@ class BaseTables extends Migration
|
|||
->unsigned()
|
||||
->default(0);
|
||||
|
||||
$table->text('comment_text', 255);
|
||||
$table->text('comment_text');
|
||||
});
|
||||
|
||||
$schema->create('emoticons', function (Blueprint $table) {
|
||||
|
|
55
database/2016_09_19_114415_last_listened_music.php
Normal file
55
database/2016_09_19_114415_last_listened_music.php
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Sakura\DB;
|
||||
|
||||
class LastListenedMusic extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$schema = DB::getSchemaBuilder();
|
||||
|
||||
$schema->table('users', function (Blueprint $table) {
|
||||
$table->text('user_last_track')
|
||||
->nullable();
|
||||
|
||||
$table->string('user_last_track_url', 255)
|
||||
->nullable()
|
||||
->default(null);
|
||||
|
||||
$table->text('user_last_artist')
|
||||
->nullable();
|
||||
|
||||
$table->string('user_last_artist_url', 255)
|
||||
->nullable()
|
||||
->default(null);
|
||||
|
||||
$table->string('user_last_cover', 255)
|
||||
->nullable()
|
||||
->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$schema = DB::getSchemaBuilder();
|
||||
|
||||
$schema->table('users', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'user_last_track',
|
||||
'user_last_track_url',
|
||||
'user_last_artist',
|
||||
'user_last_artist_url',
|
||||
'user_last_cover',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
Reference in a new issue