aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-08 16:27:29 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-08 16:27:29 +0100
commit292c1324e982fdaa26633cb4b7bb56f29bdea57d (patch)
tree449ade93c49a8bc63825ec89c2df44ad0ad6dea3
parent39643c6b76d92d509b1af0228b6379d7fdce8a1c (diff)
downloadwallabag-292c1324e982fdaa26633cb4b7bb56f29bdea57d.tar.gz
wallabag-292c1324e982fdaa26633cb4b7bb56f29bdea57d.tar.zst
wallabag-292c1324e982fdaa26633cb4b7bb56f29bdea57d.zip
Installation & configuration of Doctrine Migrations
-rw-r--r--app/AppKernel.php1
-rw-r--r--app/config/config.yml6
-rw-r--r--composer.json3
-rw-r--r--composer.lock132
4 files changed, 138 insertions, 4 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php
index 93b0201a..d2aa8d1c 100644
--- a/app/AppKernel.php
+++ b/app/AppKernel.php
@@ -32,6 +32,7 @@ class AppKernel extends Kernel
32 new Scheb\TwoFactorBundle\SchebTwoFactorBundle(), 32 new Scheb\TwoFactorBundle\SchebTwoFactorBundle(),
33 new KPhoen\RulerZBundle\KPhoenRulerZBundle(), 33 new KPhoen\RulerZBundle\KPhoenRulerZBundle(),
34 new Wallabag\ImportBundle\WallabagImportBundle(), 34 new Wallabag\ImportBundle\WallabagImportBundle(),
35 new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
35 ); 36 );
36 37
37 if (in_array($this->getEnvironment(), array('dev', 'test'))) { 38 if (in_array($this->getEnvironment(), array('dev', 'test'))) {
diff --git a/app/config/config.yml b/app/config/config.yml
index e50f9b52..8e9369c2 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -102,6 +102,12 @@ stof_doctrine_extensions:
102 tree: true 102 tree: true
103 sluggable: true 103 sluggable: true
104 104
105doctrine_migrations:
106 dir_name: "%kernel.root_dir%/DoctrineMigrations"
107 namespace: Application\Migrations
108 table_name: migration_versions
109 name: Application Migrations
110
105# Swiftmailer Configuration 111# Swiftmailer Configuration
106swiftmailer: 112swiftmailer:
107 transport: "%mailer_transport%" 113 transport: "%mailer_transport%"
diff --git a/composer.json b/composer.json
index 0ba42a3e..3300c0fb 100644
--- a/composer.json
+++ b/composer.json
@@ -60,7 +60,8 @@
60 "grandt/phpepub": "~4.0", 60 "grandt/phpepub": "~4.0",
61 "wallabag/php-mobi": "~1.0.0", 61 "wallabag/php-mobi": "~1.0.0",
62 "kphoen/rulerz-bundle": "~0.10", 62 "kphoen/rulerz-bundle": "~0.10",
63 "guzzlehttp/guzzle": "^5.2.0" 63 "guzzlehttp/guzzle": "^5.2.0",
64 "doctrine/doctrine-migrations-bundle": "^1.0"
64 }, 65 },
65 "require-dev": { 66 "require-dev": {
66 "doctrine/doctrine-fixtures-bundle": "~2.2.0", 67 "doctrine/doctrine-fixtures-bundle": "~2.2.0",
diff --git a/composer.lock b/composer.lock
index 858a125c..f29ffec5 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,8 +4,8 @@
4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 "This file is @generated automatically" 5 "This file is @generated automatically"
6 ], 6 ],
7 "hash": "fdba142656b2089b0e4cbddb45e2ad1f", 7 "hash": "e738598a939db93e1c63d4aca980e42b",
8 "content-hash": "a233f851c52683783b6a42be707c52b1", 8 "content-hash": "19dffb1d7e701242746aea4ca17cebc2",
9 "packages": [ 9 "packages": [
10 { 10 {
11 "name": "behat/transliterator", 11 "name": "behat/transliterator",
@@ -561,6 +561,64 @@
561 "time": "2015-11-27 04:59:07" 561 "time": "2015-11-27 04:59:07"
562 }, 562 },
563 { 563 {
564 "name": "doctrine/doctrine-migrations-bundle",
565 "version": "1.1.1",
566 "source": {
567 "type": "git",
568 "url": "https://github.com/doctrine/DoctrineMigrationsBundle.git",
569 "reference": "303a576e2124efb07ec215e34ea2480b841cf5e4"
570 },
571 "dist": {
572 "type": "zip",
573 "url": "https://api.github.com/repos/doctrine/DoctrineMigrationsBundle/zipball/303a576e2124efb07ec215e34ea2480b841cf5e4",
574 "reference": "303a576e2124efb07ec215e34ea2480b841cf5e4",
575 "shasum": ""
576 },
577 "require": {
578 "doctrine/doctrine-bundle": "~1.0",
579 "doctrine/migrations": "~1.0",
580 "php": ">=5.3.2",
581 "symfony/framework-bundle": "~2.3|~3.0"
582 },
583 "type": "symfony-bundle",
584 "extra": {
585 "branch-alias": {
586 "dev-master": "1.1-dev"
587 }
588 },
589 "autoload": {
590 "psr-4": {
591 "Doctrine\\Bundle\\MigrationsBundle\\": ""
592 }
593 },
594 "notification-url": "https://packagist.org/downloads/",
595 "license": [
596 "MIT"
597 ],
598 "authors": [
599 {
600 "name": "Symfony Community",
601 "homepage": "http://symfony.com/contributors"
602 },
603 {
604 "name": "Doctrine Project",
605 "homepage": "http://www.doctrine-project.org"
606 },
607 {
608 "name": "Fabien Potencier",
609 "email": "fabien@symfony.com"
610 }
611 ],
612 "description": "Symfony DoctrineMigrationsBundle",
613 "homepage": "http://www.doctrine-project.org",
614 "keywords": [
615 "dbal",
616 "migrations",
617 "schema"
618 ],
619 "time": "2015-11-04 13:45:30"
620 },
621 {
564 "name": "doctrine/inflector", 622 "name": "doctrine/inflector",
565 "version": "v1.1.0", 623 "version": "v1.1.0",
566 "source": { 624 "source": {
@@ -736,6 +794,74 @@
736 "time": "2014-09-09 13:34:57" 794 "time": "2014-09-09 13:34:57"
737 }, 795 },
738 { 796 {
797 "name": "doctrine/migrations",
798 "version": "v1.2.2",
799 "source": {
800 "type": "git",
801 "url": "https://github.com/doctrine/migrations.git",
802 "reference": "6b70c2c4484c02878743929bb3cd3fdbf41193a6"
803 },
804 "dist": {
805 "type": "zip",
806 "url": "https://api.github.com/repos/doctrine/migrations/zipball/6b70c2c4484c02878743929bb3cd3fdbf41193a6",
807 "reference": "6b70c2c4484c02878743929bb3cd3fdbf41193a6",
808 "shasum": ""
809 },
810 "require": {
811 "doctrine/dbal": "~2.2",
812 "php": ">=5.4.0",
813 "symfony/console": "~2.3|~3.0",
814 "symfony/yaml": "~2.3|~3.0"
815 },
816 "require-dev": {
817 "doctrine/coding-standard": "dev-master",
818 "doctrine/orm": "2.*",
819 "johnkary/phpunit-speedtrap": "~1.0@dev",
820 "mockery/mockery": "^0.9.4",
821 "phpunit/phpunit": "~4.7",
822 "satooshi/php-coveralls": "0.6.*"
823 },
824 "bin": [
825 "bin/doctrine-migrations"
826 ],
827 "type": "library",
828 "extra": {
829 "branch-alias": {
830 "dev-master": "v1.1.x-dev"
831 }
832 },
833 "autoload": {
834 "psr-4": {
835 "Doctrine\\DBAL\\Migrations\\": "lib/Doctrine/DBAL/Migrations"
836 }
837 },
838 "notification-url": "https://packagist.org/downloads/",
839 "license": [
840 "LGPL-2.1"
841 ],
842 "authors": [
843 {
844 "name": "Benjamin Eberlei",
845 "email": "kontakt@beberlei.de"
846 },
847 {
848 "name": "Jonathan Wage",
849 "email": "jonwage@gmail.com"
850 },
851 {
852 "name": "Michael Simonson",
853 "email": "contact@mikesimonson.com"
854 }
855 ],
856 "description": "Database Schema migrations using Doctrine DBAL",
857 "homepage": "http://www.doctrine-project.org",
858 "keywords": [
859 "database",
860 "migrations"
861 ],
862 "time": "2016-01-07 21:28:50"
863 },
864 {
739 "name": "doctrine/orm", 865 "name": "doctrine/orm",
740 "version": "v2.5.3", 866 "version": "v2.5.3",
741 "source": { 867 "source": {
@@ -1075,7 +1201,7 @@
1075 }, 1201 },
1076 "dist": { 1202 "dist": {
1077 "type": "zip", 1203 "type": "zip",
1078 "url": "https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/zipball/e5e7a2b8984da8dfedaf44adc7e5f60a62ad280c", 1204 "url": "https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/zipball/6ccff96434c0ac7fee077d1dce90966341dfd278",
1079 "reference": "e5e7a2b8984da8dfedaf44adc7e5f60a62ad280c", 1205 "reference": "e5e7a2b8984da8dfedaf44adc7e5f60a62ad280c",
1080 "shasum": "" 1206 "shasum": ""
1081 }, 1207 },