Commit 84becc3f authored by Hermann Mayer's avatar Hermann Mayer

Added Doctrine Migration Bundle. Build first migration class to fit the production env.

parent 99ed7a09
......@@ -31,6 +31,7 @@ class AppKernel extends Kernel
new Presta\SitemapBundle\PrestaSitemapBundle(),
new Jity\TagGeneratorBundle\JityTagGeneratorBundle(),
new Nelmio\SolariumBundle\NelmioSolariumBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
......
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your need!
*/
class Version20121126174815 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
$this->addSql("ALTER TABLE comment ADD authorName VARCHAR(255) DEFAULT NULL, ADD authorEmail VARCHAR(255) DEFAULT NULL, ADD authorWebsite VARCHAR(255) DEFAULT NULL, ADD authorTwitterNickname VARCHAR(255) DEFAULT NULL");
$this->addSql("ALTER TABLE category CHANGE name name VARCHAR(50) NOT NULL");
}
public function down(Schema $schema)
{
// this down() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
$this->addSql("ALTER TABLE category CHANGE name name VARCHAR(100) NOT NULL");
$this->addSql("ALTER TABLE comment DROP authorName, DROP authorEmail, DROP authorWebsite, DROP authorTwitterNickname");
}
}
No preview for this file type
......@@ -13,12 +13,6 @@
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "vcs",
"url": "http://github.com/kostiklv/PrestaSitemapBundle"
}
],
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
......@@ -41,11 +35,13 @@
"stof/doctrine-extensions-bundle": "dev-master",
"xi/breadcrumbs-bundle": "dev-master",
"hwi/oauth-bundle": "dev-master",
"mobiledetect/mobiledetectlib": "dev-master",
"suncat/mobile-detect-bundle": "dev-master",
"excelwebzone/recaptcha-bundle": "dev-master",
"presta/sitemap-bundle": "dev-sitemap-dumper",
"presta/sitemap-bundle": "dev-master",
"jity/tag-generator": "dev-master",
"nelmio/solarium-bundle": "1.0.x-dev"
"nelmio/solarium-bundle": "1.0.x-dev",
"doctrine/doctrine-migrations-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
......
{
"hash": "ac09ba6004adc6ef6db4e994a9f5e8ab",
"hash": "5461e52a309ae303f6ce149131f90147",
"packages": [
{
"name": "dflydev/markdown",
......@@ -72,7 +72,7 @@
"require": {
"php": ">=5.3.2"
},
"time": "2012-09-20 03:55:18",
"time": "2012-09-19 22:55:18",
"type": "library",
"extra": {
"branch-alias": {
......@@ -96,7 +96,8 @@
},
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
"email": "guilhermeblanco@gmail.com",
"homepage": "http://www.instaclick.com"
},
{
"name": "Roman Borschel",
......@@ -129,18 +130,18 @@
"source": {
"type": "git",
"url": "https://github.com/doctrine/data-fixtures.git",
"reference": "98e059213cd8bf70f1203a3c9acc3c7e8afc2c89"
"reference": "a28b6bde290b0a908d32938e3393244086c2d89d"
},
"dist": {
"type": "zip",
"url": "https://github.com/doctrine/data-fixtures/archive/98e059213cd8bf70f1203a3c9acc3c7e8afc2c89.zip",
"reference": "98e059213cd8bf70f1203a3c9acc3c7e8afc2c89",
"url": "https://github.com/doctrine/data-fixtures/archive/a28b6bde290b0a908d32938e3393244086c2d89d.zip",
"reference": "a28b6bde290b0a908d32938e3393244086c2d89d",
"shasum": ""
},
"require": {
"php": ">=5.3.2"
},
"time": "2012-11-20 15:00:24",
"time": "2012-11-22 04:04:25",
"type": "library",
"installation-source": "source",
"autoload": {
......@@ -182,7 +183,7 @@
"php": ">=5.3.2",
"doctrine/common": "2.3.*"
},
"time": "2012-09-20 03:56:37",
"time": "2012-09-19 22:56:37",
"type": "library",
"extra": {
"branch-alias": {
......@@ -206,7 +207,8 @@
},
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
"email": "guilhermeblanco@gmail.com",
"homepage": "http://www.instaclick.com"
},
{
"name": "Roman Borschel",
......@@ -255,7 +257,7 @@
"suggest": {
"doctrine/orm": "The Doctrine ORM integration is optional in the bundle."
},
"time": "2012-09-07 19:18:21",
"time": "2012-09-07 14:18:21",
"type": "symfony-bundle",
"extra": {
"branch-alias": {
......@@ -305,7 +307,7 @@
},
"dist": {
"type": "zip",
"url": "https://github.com/doctrine/DoctrineFixturesBundle/zipball/9edc67af16e736a31605e7fa9c9e3edbd9db6427",
"url": "https://github.com/doctrine/DoctrineFixturesBundle/archive/9edc67af16e736a31605e7fa9c9e3edbd9db6427.zip",
"reference": "9edc67af16e736a31605e7fa9c9e3edbd9db6427",
"shasum": ""
},
......@@ -347,6 +349,114 @@
"Fixture"
]
},
{
"name": "doctrine/doctrine-migrations-bundle",
"version": "dev-master",
"target-dir": "Doctrine/Bundle/MigrationsBundle",
"source": {
"type": "git",
"url": "https://github.com/doctrine/DoctrineMigrationsBundle.git",
"reference": "e494aceebe05200c3f5e7b54c9facf2cf0b2099c"
},
"dist": {
"type": "zip",
"url": "https://github.com/doctrine/DoctrineMigrationsBundle/archive/e494aceebe05200c3f5e7b54c9facf2cf0b2099c.zip",
"reference": "e494aceebe05200c3f5e7b54c9facf2cf0b2099c",
"shasum": ""
},
"require": {
"php": ">=5.3.2",
"doctrine/migrations": "*",
"symfony/framework-bundle": ">=2.1.0,<2.3-dev",
"doctrine/doctrine-bundle": "1.0.*"
},
"time": "2012-10-18 12:04:30",
"type": "symfony-bundle",
"installation-source": "source",
"autoload": {
"psr-0": {
"Doctrine\\Bundle\\MigrationsBundle": ""
}
},
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
},
{
"name": "Doctrine Project",
"homepage": "http://www.doctrine-project.org"
}
],
"description": "Symfony DoctrineMigrationsBundle",
"homepage": "http://www.doctrine-project.org",
"keywords": [
"dbal",
"migrations",
"schema"
]
},
{
"name": "doctrine/migrations",
"version": "v1.0-ALPHA1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/migrations",
"reference": "v1.0-ALPHA1"
},
"dist": {
"type": "zip",
"url": "https://github.com/doctrine/migrations/zipball/v1.0-ALPHA1",
"reference": "v1.0-ALPHA1",
"shasum": ""
},
"require": {
"php": ">=5.3.2",
"doctrine/dbal": ">=2.0,<2.5.x-dev"
},
"require-dev": {
"symfony/console": "2.*",
"symfony/yaml": "2.*"
},
"suggest": {
"symfony/console": "to run the migration from the console"
},
"time": "2012-10-05 04:15:13",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-0": {
"Doctrine\\DBAL\\Migrations": "lib"
}
},
"license": [
"LGPL"
],
"authors": [
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com",
"homepage": "http://www.jwage.com/"
},
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
}
],
"description": "Database Schema migrations using Doctrine DBAL",
"homepage": "http://www.doctrine-project.org",
"keywords": [
"database",
"migrations"
]
},
{
"name": "doctrine/orm",
"version": "2.3.0",
......@@ -370,7 +480,7 @@
"suggest": {
"symfony/yaml": "If you want to use YAML Metadata Mapping Driver"
},
"time": "2012-09-20 04:03:34",
"time": "2012-09-19 23:03:34",
"bin": [
"bin/doctrine",
"bin/doctrine.php"
......@@ -398,7 +508,8 @@
},
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
"email": "guilhermeblanco@gmail.com",
"homepage": "http://www.instaclick.com"
},
{
"name": "Roman Borschel",
......@@ -468,7 +579,7 @@
},
"dist": {
"type": "zip",
"url": "https://github.com/l3pp4rd/DoctrineExtensions/zipball/v2.3.2",
"url": "https://github.com/l3pp4rd/DoctrineExtensions/archive/v2.3.2.zip",
"reference": "v2.3.2",
"shasum": ""
},
......@@ -480,7 +591,7 @@
"doctrine/orm": ">=2.1",
"doctrine/mongodb-odm": "*"
},
"time": "2012-07-13 22:26:40",
"time": "2012-07-13 15:26:40",
"type": "library",
"extra": {
"branch-alias": {
......@@ -499,7 +610,7 @@
"authors": [
{
"name": "Gediminas Morkevicius",
"email": "gediminas.morkevicius@gmail"
"email": "gediminas.morkevicius@gmail.com"
}
],
"description": "Doctrine2 behavioral extensions",
......@@ -601,13 +712,13 @@
"source": {
"type": "git",
"url": "git://gitorious.hermann-mayer.net/jity/jity-tag-generator.git",
"reference": "8e2f9e282f67ddfaae1a3d5515e3991b771734a4"
"reference": "18dd9e519f44c6e626e1d41fd760e812d3d397b8"
},
"require": {
"php": ">=5.3.0",
"doctrine/common": ">=2.3.0"
},
"time": "2012-11-14 00:11:42",
"time": "2012-11-24 10:43:43",
"type": "library",
"installation-source": "source",
"autoload": {
......@@ -654,7 +765,7 @@
"symfony/framework-bundle": "2.*",
"jms/cg": "1.0.0"
},
"time": "2012-01-02 19:50:26",
"time": "2012-01-02 12:50:26",
"type": "symfony-bundle",
"installation-source": "dist",
"autoload": {
......@@ -696,7 +807,7 @@
"require": {
"php": ">=5.3.0"
},
"time": "2012-01-02 19:40:52",
"time": "2012-01-02 12:40:52",
"type": "library",
"installation-source": "dist",
"autoload": {
......@@ -711,7 +822,7 @@
{
"name": "Johannes M. Schmitt",
"email": "schmittjoh@gmail.com",
"homepage": "https://github.com/schmittjoh",
"homepage": "http://jmsyst.com",
"role": "Developer of wrapped JMSSerializerBundle"
}
],
......@@ -755,7 +866,7 @@
"doctrine/doctrine-bundle": "*",
"doctrine/orm": "*"
},
"time": "2012-09-21 06:56:32",
"time": "2012-09-21 01:56:32",
"type": "symfony-bundle",
"installation-source": "dist",
"autoload": {
......@@ -798,7 +909,7 @@
"require": {
"php": ">=5.3.0"
},
"time": "2012-01-02 20:32:49",
"time": "2012-01-02 13:32:49",
"type": "library",
"installation-source": "dist",
"autoload": {
......@@ -896,7 +1007,7 @@
"symfony/form": "*",
"symfony/validator": "*"
},
"time": "2012-09-06 14:12:03",
"time": "2012-09-06 09:12:03",
"type": "symfony-bundle",
"installation-source": "dist",
"autoload": {
......@@ -1006,7 +1117,7 @@
},
"dist": {
"type": "zip",
"url": "https://github.com/KnpLabs/KnpMarkdownBundle/zipball/1a31848de5aad77b32d2b152bdce51cfbc9edcca",
"url": "https://github.com/KnpLabs/KnpMarkdownBundle/archive/1a31848de5aad77b32d2b152bdce51cfbc9edcca.zip",
"reference": "1a31848de5aad77b32d2b152bdce51cfbc9edcca",
"shasum": ""
},
......@@ -1084,7 +1195,7 @@
"leafo/scssphp": "Assetic provides the integration with the scssphp SCSS compiler",
"ptachoire/cssembed": "Assetic provides the integration with phpcssembed to embed data uris"
},
"time": "2012-08-28 10:33:44",
"time": "2012-08-28 05:33:44",
"type": "library",
"extra": {
"branch-alias": {
......@@ -1160,6 +1271,52 @@
"http client"
]
},
{
"name": "mobiledetect/mobiledetectlib",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/serbanghita/Mobile-Detect",
"reference": "5ca135e7390f0143f15f66a59bb0df2053b6e6fa"
},
"dist": {
"type": "zip",
"url": "https://github.com/serbanghita/Mobile-Detect/archive/5ca135e7390f0143f15f66a59bb0df2053b6e6fa.zip",
"reference": "5ca135e7390f0143f15f66a59bb0df2053b6e6fa",
"shasum": ""
},
"require": {
"php": ">=5.0.0"
},
"time": "2012-11-26 16:04:57",
"type": "library",
"installation-source": "source",
"autoload": {
"classmap": [
"Mobile_Detect.php"
]
},
"license": [
"MIT"
],
"authors": [
{
"name": "Serban Ghita",
"email": "serbanghita@gmail.com",
"homepage": "http://mobiledetect.net",
"role": "Developer"
}
],
"description": "Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.",
"homepage": "https://github.com/serbanghita/Mobile-Detect",
"keywords": [
"mobile",
"mobile detect",
"mobile detector",
"php mobile detect",
"detect mobile devices"
]
},
{
"name": "monolog/monolog",
"version": "1.2.1",
......@@ -1185,7 +1342,7 @@
"ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
"ext-mongo": "Allow sending log messages to a MongoDB server"
},
"time": "2012-08-29 09:53:20",
"time": "2012-08-29 04:53:20",
"type": "library",
"extra": {
"branch-alias": {
......@@ -1320,27 +1477,27 @@
},
{
"name": "presta/sitemap-bundle",
"version": "dev-sitemap-dumper",
"version": "dev-master",
"target-dir": "Presta/SitemapBundle",
"source": {
"type": "git",
"url": "http://github.com/kostiklv/PrestaSitemapBundle",
"reference": "4e54c61e659ae6daa19a45f5df8476cd1de7ffc0"
"url": "https://github.com/prestaconcept/PrestaSitemapBundle",
"reference": "0e9c56621467843109ff8f98e49d278ba8d85cd7"
},
"dist": {
"type": "zip",
"url": "https://github.com/kostiklv/PrestaSitemapBundle/archive/4e54c61e659ae6daa19a45f5df8476cd1de7ffc0.zip",
"reference": "4e54c61e659ae6daa19a45f5df8476cd1de7ffc0",
"url": "https://github.com/prestaconcept/PrestaSitemapBundle/archive/0e9c56621467843109ff8f98e49d278ba8d85cd7.zip",
"reference": "0e9c56621467843109ff8f98e49d278ba8d85cd7",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"symfony/symfony": "2.1.*@dev"
"symfony/symfony": ">=2.1.0"
},
"suggest": {
"liip/doctrine-cache-bundle": "Allows to store sitemaps in cache"
},
"time": "2012-11-02 17:05:24",
"time": "2012-11-22 10:41:54",
"type": "symfony-bundle",
"installation-source": "source",
"autoload": {
......@@ -1359,15 +1516,12 @@
],
"description": "A symfony 2 bundle that provides tools to build your application sitemap.",
"keywords": [
"symfony2",
"bundle",
"sitemap",
"xml",
"Symfony2",
"bundle",
"Sitemap",
"prestaconcept"
],
"support": {
"source": "https://github.com/kostiklv/PrestaSitemapBundle/tree/sitemap-dumper"
}
]
},
{
"name": "sensio/distribution-bundle",
......@@ -1621,22 +1775,22 @@
"source": {
"type": "git",
"url": "https://github.com/suncat2000/MobileDetectBundle",
"reference": "654ddf969a4042b0445d5a92dda1271b1cdaea6a"
"reference": "786e7cf8808eea19f00ff38976c830d73641ee2c"
},
"dist": {
"type": "zip",
"url": "https://github.com/suncat2000/MobileDetectBundle/zipball/654ddf969a4042b0445d5a92dda1271b1cdaea6a",
"reference": "654ddf969a4042b0445d5a92dda1271b1cdaea6a",
"url": "https://github.com/suncat2000/MobileDetectBundle/archive/786e7cf8808eea19f00ff38976c830d73641ee2c.zip",
"reference": "786e7cf8808eea19f00ff38976c830d73641ee2c",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"suncat/php-mobile-detect": ">=2.0.9"
"mobiledetect/mobiledetectlib": "dev-master"
},
"require-dev": {
"symfony/framework-bundle": "2.1.*"
},
"time": "2012-10-09 20:49:04",
"time": "2012-11-25 16:51:40",
"type": "symfony-bundle",
"installation-source": "source",
"autoload": {
......@@ -1664,55 +1818,6 @@
"mobile redirect"
]
},
{
"name": "suncat/php-mobile-detect",
"version": "v2.0.9",
"source": {
"type": "git",
"url": "https://github.com/suncat2000/php-mobile-detect",
"reference": "v2.0.9"
},
"dist": {
"type": "zip",
"url": "https://github.com/suncat2000/php-mobile-detect/zipball/v2.0.9",
"reference": "v2.0.9",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"time": "2012-07-23 13:25:18",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-0": {
"Mobile_Detect": "lib/"
}
},
"license": [
"MIT"
],
"authors": [
{
"name": "Victor Stanciu",
"email": "vic.stanciu@gmail.com",
"homepage": "https://plus.google.com/112830021345771739573"
},
{
"name": "Serban Ghita",
"email": "serbanghita@gmail.com",
"homepage": "http://ghita.org"
}
],
"description": "Lightweight PHP class for detecting mobile devices",
"homepage": "https://github.com/suncat2000/php-mobile-detect",
"keywords": [
"mobile",
"mobile detect",
"mobile detector",
"mobile device"
]
},
{
"name": "swiftmailer/swiftmailer",
"version": "v4.2.2",
......@@ -1794,7 +1899,7 @@
"suggest": {
"symfony/twig-bundle": "2.1.*"
},
"time": "2012-08-28 08:22:44",
"time": "2012-08-28 03:22:44",
"type": "symfony-bundle",
"extra": {
"branch-alias": {
......@@ -1851,7 +1956,7 @@
"symfony/yaml": "2.1.*",
"symfony/config": "2.1.*"
},
"time": "2012-08-21 12:05:54",
"time": "2012-08-21 07:05:54",
"type": "symfony-bundle",
"extra": {
"branch-alias": {
......@@ -1887,12 +1992,12 @@
"source": {
"type": "git",
"url": "https://github.com/symfony/SwiftmailerBundle",
"reference": "v2.1.0"
"reference": "v2.1.0-RC2"
},
"dist": {
"type": "zip",
"url": "https://github.com/symfony/SwiftmailerBundle/zipball/v2.1.0",
"reference": "v2.1.0",
"url": "https://github.com/symfony/SwiftmailerBundle/zipball/v2.1.0-RC2",
"reference": "v2.1.0-RC2",
"shasum": ""
},
"require": {
......@@ -1905,7 +2010,7 @@
"symfony/http-kernel": "2.1.*",
"symfony/config": "2.1.*"
},
"time": "2012-08-28 08:21:09",
"time": "2012-08-28 03:21:09",
"type": "symfony-bundle",
"extra": {
"branch-alias": {
......@@ -2044,7 +2149,7 @@
"require": {
"twig/twig": "1.*"
},
"time": "2012-08-28 13:04:23",
"time": "2012-08-28 08:04:23",
"type": "library",
"extra": {
"branch-alias": {
......@@ -2134,7 +2239,7 @@
},
"dist": {
"type": "zip",
"url": "https://github.com/xi-project/xi-bundle-breadcrumbs/zipball/7643450414f2c51c48b4024bdf0607b1163c04f4",
"url": "https://github.com/xi-project/xi-bundle-breadcrumbs/archive/7643450414f2c51c48b4024bdf0607b1163c04f4.zip",
"reference": "7643450414f2c51c48b4024bdf0607b1163c04f4",
"shasum": ""
},
......@@ -2194,10 +2299,12 @@
"stof/doctrine-extensions-bundle": 20,
"xi/breadcrumbs-bundle": 20,
"hwi/oauth-bundle": 20,
"mobiledetect/mobiledetectlib": 20,
"suncat/mobile-detect-bundle": 20,
"excelwebzone/recaptcha-bundle": 20,
"presta/sitemap-bundle": 20,
"jity/tag-generator": 20,
"nelmio/solarium-bundle": 20
"nelmio/solarium-bundle": 20,
"doctrine/doctrine-migrations-bundle": 20
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment