Remove binary attributes from DB, should be json columns
This commit is contained in:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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');
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user