Skip to content

Commit

Permalink
add Symbiota 3.0 migrations and Skeleton Seeders
Browse files Browse the repository at this point in the history
  • Loading branch information
MuchQuak committed Sep 25, 2024
1 parent 2980182 commit e529301
Show file tree
Hide file tree
Showing 320 changed files with 10,893 additions and 62 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"kitloong/laravel-migrations-generator": "^7.0",
"laravel/pint": "^1.0",
"laravel/sail": "^1.32",
"mockery/mockery": "^1.4.4",
Expand Down
79 changes: 78 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 0 additions & 48 deletions database/migrations/2014_10_12_000000_create_users_table.php

This file was deleted.

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');
}
};
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 database/migrations/2024_09_24_194122_create_adminconfig_table.php
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');
}
};
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 database/migrations/2024_09_24_194122_create_adminstats_table.php
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');
}
};
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 database/migrations/2024_09_24_194122_create_agentlinks_table.php
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');
}
};
Loading

0 comments on commit e529301

Please sign in to comment.