Skip to content

Commit

Permalink
Add migration to change dpas underage field to TEXT rather than VARCHAR
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Aug 25, 2024
1 parent db67239 commit 24fc20e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
TSPortal follows a basic numerical increase system for releases and not Semantic Versioning.
The main reasoning behind this choice is the software is not built to be extended upon, therefore no stable public API exists.

## [Unreleased](https://github.com/miraheze/TSPortal/compare/v18...master)
## [Unreleased](https://github.com/miraheze/TSPortal/compare/v19...master)

## Version 19 (2024-08-26)

### Fixed

- Added migration to change dpas underage field to TEXT rather than VARCHAR to avoid SQL errors

## Version 18 (2024-02-24)

Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
|
*/

'version' => 18,
'version' => 19,

/*
|--------------------------------------------------------------------------
Expand Down
32 changes: 32 additions & 0 deletions database/migrations/2024_08_22_000001_update_dpas_underage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChangeUnderageToTextInDpasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table( 'dpas', function( Blueprint $table ) {
$table->text( 'underage' )->nullable()->change();
} );
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table( 'dpas', function( Blueprint $table ) {
$table->string( 'underage' )->nullable()->change();
} );
}
}

0 comments on commit 24fc20e

Please sign in to comment.