-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Symbiota 3.0 migrations and Skeleton Seeders
- Loading branch information
Showing
320 changed files
with
10,893 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
database/migrations/2014_10_12_000000_create_users_table.php
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
database/migrations/2024_09_24_194122_create_actionrequest_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('actionrequest', function (Blueprint $table) { | ||
$table->bigInteger('actionrequestid', true); | ||
$table->integer('fk'); | ||
$table->string('tablename')->nullable(); | ||
$table->string('requesttype', 30)->index('fk_actionreq_type_idx'); | ||
$table->unsignedInteger('uid_requestor')->index('fk_actionreq_uid1_idx'); | ||
$table->timestamp('requestdate')->useCurrentOnUpdate()->useCurrent(); | ||
$table->string('requestremarks', 900)->nullable(); | ||
$table->integer('priority')->nullable(); | ||
$table->unsignedInteger('uid_fullfillor')->index('fk_actionreq_uid2_idx'); | ||
$table->string('state', 12)->nullable(); | ||
$table->string('resolution', 12)->nullable(); | ||
$table->dateTime('statesetdate')->nullable(); | ||
$table->string('resolutionremarks', 900)->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('actionrequest'); | ||
} | ||
}; |
29 changes: 29 additions & 0 deletions
29
database/migrations/2024_09_24_194122_create_actionrequesttype_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('actionrequesttype', function (Blueprint $table) { | ||
$table->string('requesttype', 30)->primary(); | ||
$table->string('context')->nullable(); | ||
$table->string('description')->nullable(); | ||
$table->timestamp('initialtimestamp')->useCurrent(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('actionrequesttype'); | ||
} | ||
}; |
34 changes: 34 additions & 0 deletions
34
database/migrations/2024_09_24_194122_create_adminconfig_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('adminconfig', function (Blueprint $table) { | ||
$table->integer('configID', true); | ||
$table->string('category', 45)->nullable(); | ||
$table->string('attributeName', 45)->unique('uq_adminconfig_name'); | ||
$table->string('attributeValue', 1000); | ||
$table->text('dynamicProperties')->nullable(); | ||
$table->string('notes', 45)->nullable(); | ||
$table->unsignedInteger('modifiedUid')->nullable()->index('fk_adminconfig_uid_idx'); | ||
$table->dateTime('modifiedTimestamp')->nullable(); | ||
$table->timestamp('initialTimestamp')->useCurrent(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('adminconfig'); | ||
} | ||
}; |
32 changes: 32 additions & 0 deletions
32
database/migrations/2024_09_24_194122_create_adminlanguages_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('adminlanguages', function (Blueprint $table) { | ||
$table->integer('langid', true); | ||
$table->string('langname', 45)->unique('index_langname_unique'); | ||
$table->string('iso639_1', 10)->nullable(); | ||
$table->string('iso639_2', 10)->nullable(); | ||
$table->string('ISO 639-3', 3)->nullable(); | ||
$table->string('notes', 45)->nullable(); | ||
$table->timestamp('initialtimestamp')->useCurrent(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('adminlanguages'); | ||
} | ||
}; |
36 changes: 36 additions & 0 deletions
36
database/migrations/2024_09_24_194122_create_adminstats_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('adminstats', function (Blueprint $table) { | ||
$table->increments('idadminstats'); | ||
$table->string('category', 45)->index('index_category'); | ||
$table->string('statname', 45); | ||
$table->integer('statvalue')->nullable(); | ||
$table->integer('statpercentage')->nullable(); | ||
$table->text('dynamicProperties')->nullable(); | ||
$table->integer('groupid'); | ||
$table->unsignedInteger('collid')->nullable()->index('fk_adminstats_collid_idx'); | ||
$table->unsignedInteger('uid')->nullable()->index('fk_adminstats_uid_idx'); | ||
$table->string('note', 250)->nullable(); | ||
$table->timestamp('initialtimestamp')->nullable()->useCurrent()->index('index_adminstats_ts'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('adminstats'); | ||
} | ||
}; |
34 changes: 34 additions & 0 deletions
34
database/migrations/2024_09_24_194122_create_agentdeterminationlink_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('agentdeterminationlink', function (Blueprint $table) { | ||
$table->bigInteger('agentID'); | ||
$table->unsignedInteger('detID')->index('fk_agentdetlink_detid_idx'); | ||
$table->string('role', 45)->default('')->index('ix_agentdetlink_role'); | ||
$table->unsignedInteger('createdUid')->nullable()->index('fk_agentdetlink_created_idx'); | ||
$table->unsignedInteger('modifiedUid')->nullable()->index('fk_agentdetlink_modified_idx'); | ||
$table->dateTime('dateLastModified')->nullable(); | ||
$table->timestamp('initialTimestamp')->nullable()->useCurrent(); | ||
|
||
$table->primary(['agentID', 'detID', 'role']); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('agentdeterminationlink'); | ||
} | ||
}; |
35 changes: 35 additions & 0 deletions
35
database/migrations/2024_09_24_194122_create_agentlinks_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('agentlinks', function (Blueprint $table) { | ||
$table->bigInteger('agentLinksID', true); | ||
$table->bigInteger('agentID')->index('fk_agentlinks_agentid_idx'); | ||
$table->string('type', 50)->nullable(); | ||
$table->string('link', 900)->nullable(); | ||
$table->boolean('isPrimaryTopicOf')->default(true); | ||
$table->string('text', 50)->nullable(); | ||
$table->unsignedInteger('createdUid')->nullable()->index('fk_agentlinks_createduid_idx'); | ||
$table->unsignedInteger('modifiedUid')->nullable()->index('fk_agentlinks_moduid_idx'); | ||
$table->dateTime('dateLastModified')->nullable(); | ||
$table->timestamp('initialTimestamp')->useCurrent(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('agentlinks'); | ||
} | ||
}; |
Oops, something went wrong.