PostgreSQL Support (#4486)
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
This commit is contained in:
parent
21613fa602
commit
3bf5a71802
223 changed files with 912 additions and 1052 deletions
|
@ -9,12 +9,10 @@ class SetupTableForKeyEncryption extends Migration
|
|||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception
|
||||
* @throws \Throwable
|
||||
*/
|
||||
public function up()
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('api_keys', function (Blueprint $table) {
|
||||
$table->char('identifier', 16)->nullable()->unique()->after('user_id');
|
||||
|
@ -29,12 +27,10 @@ class SetupTableForKeyEncryption extends Migration
|
|||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception
|
||||
* @throws \Throwable
|
||||
*/
|
||||
public function down()
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('api_keys', function (Blueprint $table) {
|
||||
$table->dropColumn('identifier');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue