You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
477 B

  1. <?php
  2. use Movim\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class ChangeLengthEmojiReactionsTable extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->schema->table('reactions', function (Blueprint $table) {
  9. $table->string('emoji', 32)->change();
  10. });
  11. }
  12. public function down()
  13. {
  14. $this->schema->table('reactions', function (Blueprint $table) {
  15. $table->string('emoji', 1)->change();
  16. });
  17. }
  18. }