Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 828: Refactor schema to allow smaller indexes #46

Merged
merged 5 commits into from
May 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Gemini/bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env php
<?php

require_once __DIR__.'/../vendor/autoload.php';

set_time_limit(0);

use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');

$app = require __DIR__.'/../src/app.php';
$console = require __DIR__.'/../src/console.php';

$app->register(
new \Kurl\Silex\Provider\DoctrineMigrationsProvider($console),
array(
'migrations.directory' => __DIR__ . '/../src/Migrations',
'migrations.namespace' => 'Islandora\Gemini\Migrations',
'migrations.name' => 'Gemini Migrations',
'migrations.table_name' => 'gemini_migrations',
)
);

$console->setHelperSet($app['migrations.em_helper_set']);
$console->addCommands($app['migrations.commands']);

$console->run();
4 changes: 3 additions & 1 deletion Gemini/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"description": "Path mapping Service between Fedora and Drupal",
"require": {
"silex/silex": "^2.0",
"islandora/crayfish-commons": "dev-master"
"islandora/crayfish-commons": "dev-master",
"doctrine/migrations": "^1.5",
"kurl/silex-doctrine-migrations-provider": "^0.3.1"
},
"require-dev": {
"phpunit/phpunit": "^5.0",
Expand Down
Loading