-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
77 additions
and
118 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
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,49 @@ | ||
<?php | ||
|
||
/** | ||
* @file ObjectsForReviewSchemaMigration.inc.php | ||
* | ||
* Copyright (c) 2014-2020 Simon Fraser University | ||
* Copyright (c) 2000-2020 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class ObjectsForReviewSchemaMigration | ||
* @brief Describe database table structures. | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Builder; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Capsule\Manager as Capsule; | ||
|
||
class ObjectsForReviewSchemaMigration extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up() | ||
{ | ||
Capsule::schema()->create('objects_for_review', function (Blueprint $table) { | ||
$table->bigInteger('object_id')->autoIncrement(); | ||
$table->bigInteger('submission_id')->nullable(); | ||
$table->bigInteger('context_id'); | ||
$table->bigInteger('user_id')->nullable(); | ||
$table->string('identifier', 255); | ||
$table->string('identifier_type', 255); | ||
$table->string('resource_type', 255); | ||
$table->string('creator', 255); | ||
$table->datetime('date_created'); | ||
}); | ||
|
||
Capsule::schema()->create('objects_for_review_settings', function (Blueprint $table) { | ||
$table->bigInteger('object_id'); | ||
$table->string('locale', 14)->default(''); | ||
$table->string('setting_name', 255); | ||
$table->longText('setting_value')->nullable(); | ||
$table->string('setting_type', 6)->comment('(bool|int|float|string|object)'); | ||
$table->index(['object_id'], 'objects_for_review_settings_id'); | ||
$table->unique(['object_id', 'locale', 'setting_name'], 'objects_for_review_settings_pkey'); | ||
}); | ||
} | ||
|
||
} |
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
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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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