Remove binary attributes from DB, should be json columns
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 33s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2024-07-07 19:10:00 +10:00
parent 76889728cd
commit 09f2eb8d9d
9 changed files with 46 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ return new class extends Migration
$table->float('amount', 10, 0)->nullable();
$table->float('quantity', 10, 0)->nullable();
$table->boolean('taxable')->default(true);
$table->binary('attributes', 65535)->nullable();
$table->jsonb('attributes')->nullable();
$table->string('description', 128)->nullable();
$table->date('start_at')->nullable();

View File

@@ -60,7 +60,7 @@ return new class extends Migration
$table->string('host_password',45)->nullable();
$table->string('ftp_username',16)->nullable();
$table->string('ftp_password',16)->nullable();
$table->binary('server_data',65535)->nullable();
$table->jsonb('server_data')->nullable();
$table->date('expire_at')->nullable();
$table->integer('service_id')->unsigned();

View File

@@ -27,7 +27,7 @@ return new class extends Migration
$table->boolean('print_status')->default(false);
$table->integer('account_billing_id')->nullable();
$table->float('discount_amt',10,0)->nullable();
$table->binary('reminders', 65535)->nullable();
$table->jsonb('reminders')->nullable();
$table->integer('account_id')->unsigned();
$table->foreign(['account_id','site_id'])->references(['id','site_id'])->on('accounts');

View File

@@ -20,7 +20,7 @@ return new class extends Migration
$table->integer('site_id')->unsigned();
$table->string('userid',128);
$table->binary('oauth_data', 65535)->nullable();
$table->jsonb('oauth_data')->nullable();
$table->integer('user_id')->unsigned()->nullable();