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
473 B

  1. <?php
  2. use Movim\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class AddEncryptedToMessagesTable extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->schema->table('messages', function (Blueprint $table) {
  9. $table->boolean('encrypted')->default(false);
  10. });
  11. }
  12. public function down()
  13. {
  14. $this->schema->table('messages', function (Blueprint $table) {
  15. $table->dropColumn('encrypted');
  16. });
  17. }
  18. }