-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Daniel-WWU-IT/main
API updates
- Loading branch information
Showing
35 changed files
with
290 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
Empty file.
Empty file.
Empty file.
Empty file.
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,56 @@ | ||
<?php | ||
|
||
namespace OCA\sciencemesh\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\DBAL\Types\Type; | ||
use OCP\Migration\ISchemaMigration; | ||
|
||
class Version20210324134421 implements ISchemaMigration | ||
{ | ||
public function changeSchema(Schema $schema, array $options) | ||
{ | ||
$prefix = $options['tablePrefix']; | ||
|
||
// Drop any previous version, as the settings have changed completely | ||
if ($schema->hasTable("{$prefix}sciencemesh")) { | ||
$schema->dropTable("{$prefix}sciencemesh"); | ||
} | ||
|
||
$table = $schema->createTable("{$prefix}sciencemesh"); | ||
$table->addColumn('apikey', 'string', [ | ||
'notnull' => true, | ||
]); | ||
$table->addColumn('sitename', 'string', [ | ||
'notnull' => true, | ||
]); | ||
$table->addColumn('siteurl', 'string', [ | ||
'notnull' => true, | ||
]); | ||
$table->addColumn('siteid', 'string', [ | ||
'notnull' => false, | ||
]); | ||
$table->addColumn('country', 'string', [ | ||
'notnull' => true, | ||
'length' => 3, | ||
]); | ||
$table->addColumn('iopurl', 'string', [ | ||
'notnull' => true, | ||
]); | ||
$table->addColumn('numusers', Type::BIGINT, [ | ||
'notnull' => true, | ||
'default' => 0, | ||
'unsigned' => true, | ||
]); | ||
$table->addColumn('numfiles', Type::BIGINT, [ | ||
'notnull' => true, | ||
'default' => 0, | ||
'unsigned' => true, | ||
]); | ||
$table->addColumn('numstorage', Type::BIGINT, [ | ||
'notnull' => true, | ||
'default' => 0, | ||
'unsigned' => true, | ||
]); | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
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
Empty file.
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
Oops, something went wrong.