Skip to content

Commit

Permalink
Manage autoload migrations + Assigned To refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rxcod9 committed Jan 22, 2023
1 parent de05071 commit 7db3e82
Show file tree
Hide file tree
Showing 207 changed files with 561 additions and 559 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public function up()
Schema::create('address_book', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('assigned_user_id');
$table->uuid('assigned_to_id');
$table->string('bean', 50)->nullable();
$table->uuid('bean_id');

$table->index(['assigned_user_id', 'bean'], 'ab_user_bean_idx');
$table->index(['assigned_to_id', 'bean'], 'ab_user_bean_idx');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('status', 100)->nullable()->default('Draft');
$table->string('priority', 100)->nullable()->default('High');
$table->boolean('override_business_hours')->nullable()->default(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('status', 100)->nullable()->default('Not Started');
$table->string('priority', 100)->nullable()->default('High');
$table->integer('percent_complete')->nullable()->default(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->dateTime('last_optimised')->nullable();
$table->string('location')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('status', 100)->nullable()->default('Draft');
$table->string('revision')->nullable();
$table->text('additional_info')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('report_module', 100)->nullable();
$table->integer('graphs_per_row')->nullable()->default(2);
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->longText('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('active')->nullable()->default(true);
$table->string('type', 100)->nullable();
$table->longText('pdfheader')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('is_parent')->nullable()->default(false);
$table->uuid('parent_category_id')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('flow_module', 100)->nullable();
$table->string('flow_run_on', 100)->nullable()->default('0');
$table->string('status', 100)->nullable()->default('Active')->index('aow_workflow_index_status');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable()->index('idx_bugs_assigned_user');
$table->uuid('assigned_to_id')->nullable()->index('idx_bugs_assigned_to');
$table->integer('bug_number')->index('bug_number');
$table->string('type')->nullable();
$table->string('status', 100)->nullable();
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2022_12_12_000001_create_calls_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->integer('duration_hours')->nullable();
$table->integer('duration_minutes')->nullable();
$table->dateTime('date_start')->nullable()->index('idx_calls_date_start');
Expand All @@ -40,7 +40,7 @@ public function up()
$table->uuid('repeat_parent_id')->nullable();
$table->uuid('recurring_source')->nullable();

$table->index(['deleted_at', 'assigned_user_id'], 'idx_calls_assigned_del');
$table->index(['deleted_at', 'assigned_to_id'], 'idx_calls_assigned_del');
$table->index(['parent_id', 'parent_type', 'deleted_at'], 'idx_calls_par_del');
$table->timestamps();
$table->softDeletes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('document_name')->nullable();
$table->string('doc_id', 100)->nullable();
$table->string('doc_type', 100)->nullable()->default('Sugar');
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2022_12_12_000001_create_eapm_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('password')->nullable();
$table->string('url')->nullable();
$table->string('application', 100)->nullable()->default('webex');
Expand All @@ -30,7 +30,7 @@ public function up()
$table->string('oauth_secret')->nullable();
$table->boolean('validated')->nullable();

$table->index(['assigned_user_id', 'application', 'validated'], 'idx_app_active');
$table->index(['assigned_to_id', 'application', 'validated'], 'idx_app_active');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function up()
$table->longText('body')->nullable();
$table->longText('body_html')->nullable();

$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('text_only')->nullable();
$table->string('type')->nullable();
$table->timestamps();
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2022_12_12_000001_create_emails_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function up()
$table->string('name')->nullable()->index('idx_email_name');
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('orphaned')->nullable();
$table->dateTime('last_synced')->nullable();
$table->dateTime('date_sent_received')->nullable();
Expand All @@ -34,7 +34,7 @@ public function up()
$table->string('uid')->nullable()->index('idx_email_uid');
$table->string('category_id', 100)->nullable()->index('idx_email_cat');

$table->index(['assigned_user_id', 'type', 'status'], 'idx_email_assigned');
$table->index(['assigned_to_id', 'type', 'status'], 'idx_email_assigned');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->uuid('parent_id')->nullable();
$table->string('parent_type')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public function up()
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('folder_id');
$table->uuid('assigned_user_id');
$table->uuid('assigned_to_id');

$table->index(['folder_id', 'assigned_user_id'], 'idx_folder_id_assigned_user_id');
$table->index(['folder_id', 'assigned_to_id'], 'idx_folder_id_assigned_to_id');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function up()
$table->boolean('is_group')->nullable()->default(false);
$table->boolean('is_dynamic')->nullable()->default(false);
$table->text('dynamic_query')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('address')->nullable();
$table->string('address_city', 100)->nullable();
$table->string('address_country', 100)->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public function up()
$table->text('default_values')->nullable();
$table->boolean('has_header')->nullable()->default(true);

$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('is_published', 3)->nullable()->default('no');

$table->index(['assigned_user_id', 'module', 'name', 'deleted_at'], 'idx_owner_module_name');
$table->index(['assigned_to_id', 'module', 'name', 'deleted_at'], 'idx_owner_module_name');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->float('lat', 10, 8)->nullable();
$table->float('lng', 11, 8)->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
$table->string('country')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->float('distance', 9, 4)->nullable();
$table->string('unit_type', 100)->nullable()->default('mi');
$table->string('module_type', 100)->nullable()->default('Accounts');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
$table->string('country')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('location', 50)->nullable();
$table->string('password', 50)->nullable();
$table->string('join_url', 200)->nullable();
Expand Down Expand Up @@ -51,7 +51,7 @@ public function up()
$table->integer('gsync_lastsync')->nullable();

$table->index(['parent_id', 'parent_type', 'deleted_at'], 'idx_meet_par_del');
$table->index(['assigned_user_id', 'status', 'deleted_at'], 'idx_meet_stat_del');
$table->index(['assigned_to_id', 'status', 'deleted_at'], 'idx_meet_stat_del');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function up()
$table->integer('duration_value')->nullable();
$table->integer('duration_amount')->nullable();
$table->string('duration_unit')->nullable()->default('Duration Unit');
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->string('c_key')->nullable()->unique('ckey');
$table->string('c_secret')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up()
$table->string('verify', 32)->nullable();
// $table->boolean('deleted')->default(false);
$table->string('callback_url')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();

$table->index(['tstate', 'token_ts'], 'oauth_state_ts');
$table->primary(['id', 'deleted_at']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function up()
$table->string('mail_smtpssl', 1)->nullable()->default('0');
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
Schema::create('project', function (Blueprint $table) {
$table->comment('');
$table->uuid('id')->primary();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->string('name', 50)->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function up()
$table->date('date_due')->nullable();
$table->time('time_due')->nullable();
$table->integer('parent_task_id')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->string('priority')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
{
Schema::create('prospect_lists', function (Blueprint $table) {
$table->comment('');
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->uuid('id')->primary();
$table->string('name')->nullable()->index('idx_prospect_list_name');
$table->string('list_type', 100)->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
// $table->boolean('deleted')->nullable()->default(false)->index('idx_reminder_deleted');
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('popup')->nullable();
$table->boolean('email')->nullable();
$table->boolean('email_sent')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->string('name', 150)->nullable();
$table->string('search_module', 150)->nullable();

$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->text('contents')->nullable();
$table->text('description')->nullable();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->boolean('noninheritable')->nullable();
$table->timestamps();
$table->softDeletes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->uuid('modified_by_id')->nullable();
$table->uuid('created_by_id')->nullable();
$table->text('description')->nullable();
$table->uuid('assigned_user_id')->nullable();
$table->uuid('assigned_to_id')->nullable();
$table->longText('config')->nullable();
$table->string('type')->nullable();
$table->timestamps();
Expand Down
Loading

0 comments on commit 7db3e82

Please sign in to comment.