mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Piggy bank supports notes (#350)
This commit is contained in:
		
							
								
								
									
										41
									
								
								database/migrations/2016_10_22_075804_changes_for_v410.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								database/migrations/2016_10_22_075804_changes_for_v410.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| <?php | ||||
|  | ||||
| use Illuminate\Database\Migrations\Migration; | ||||
| use Illuminate\Database\Schema\Blueprint; | ||||
| use Illuminate\Support\Facades\Schema; | ||||
|  | ||||
| /** | ||||
|  * Class ChangesForV410 | ||||
|  */ | ||||
| class ChangesForV410 extends Migration | ||||
| { | ||||
|     /** | ||||
|      * Reverse the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function down() | ||||
|     { | ||||
|         Schema::dropIfExists('notes'); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Run the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function up() | ||||
|     { | ||||
|         Schema::create( | ||||
|             'notes', function (Blueprint $table) { | ||||
|             $table->increments('id'); | ||||
|             $table->timestamps(); | ||||
|             $table->softDeletes(); | ||||
|             $table->integer('noteable_id', false, true); | ||||
|             $table->string('noteable_type'); | ||||
|             $table->string('title')->nullable(); | ||||
|             $table->text('text')->nullable(); | ||||
|         } | ||||
|         ); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user