diff --git a/src/migrations/2016_07_05_213644_change_versionable_id_and_type_fields.php b/src/migrations/2016_07_05_213644_change_versionable_id_and_type_fields.php new file mode 100644 index 0000000..56417c5 --- /dev/null +++ b/src/migrations/2016_07_05_213644_change_versionable_id_and_type_fields.php @@ -0,0 +1,38 @@ +integer('versionable_id')->unsigned()->change(); + $table->string('versionable_type')->change(); + $table->index('versionable_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('versions', function(Blueprint $table) + { + $table->integer('versionable_id')->change(); + $table->text('versionable_type')->change(); + $table->dropIndex('versions_versionable_id_index'); + }); + } + +}