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.

31 lines
848 B

  1. <?php
  2. use Movim\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class ChangeLengthColumnsInfoPresence extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->schema->table('infos', function (Blueprint $table) {
  9. $table->string('node', 256)->change();
  10. });
  11. $this->schema->table('presences', function (Blueprint $table) {
  12. $table->string('resource', 256)->change();
  13. $table->text('status')->change();
  14. });
  15. }
  16. public function down()
  17. {
  18. $this->schema->table('infos', function (Blueprint $table) {
  19. $table->string('node', 96)->change();
  20. });
  21. $this->schema->table('presences', function (Blueprint $table) {
  22. $table->string('resource', 128)->change();
  23. $table->string('status', 255)->change();
  24. });
  25. }
  26. }