rename /install dir

This commit is contained in:
Manuel Raynaud
2014-04-17 17:49:15 +02:00
parent 50ac1a0318
commit 96a3742945
126 changed files with 18 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ before_script:
- composer install --prefer-dist --dev - composer install --prefer-dist --dev
- sh -c "mysql -u$DB_USER -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS thelia;SET FOREIGN_KEY_CHECKS = 1;'; fi" - sh -c "mysql -u$DB_USER -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS thelia;SET FOREIGN_KEY_CHECKS = 1;'; fi"
- php Thelia thelia:install --db_host=localhost --db_username=$DB_USER --db_name=thelia - php Thelia thelia:install --db_host=localhost --db_username=$DB_USER --db_name=thelia
- php install/faker.php - php setup/faker.php
- php Thelia module:activate Colissimo - php Thelia module:activate Colissimo
- php Thelia module:activate Cheque - php Thelia module:activate Cheque

View File

@@ -84,8 +84,8 @@ class Database
if (null === $extraSqlFiles) { if (null === $extraSqlFiles) {
$sql = array_merge( $sql = array_merge(
$sql, $sql,
$this->prepareSql(file_get_contents(THELIA_ROOT . '/install/thelia.sql')), $this->prepareSql(file_get_contents(THELIA_ROOT . '/setup/thelia.sql')),
$this->prepareSql(file_get_contents(THELIA_ROOT . '/install/insert.sql')) $this->prepareSql(file_get_contents(THELIA_ROOT . '/setup/insert.sql'))
); );
} else { } else {
foreach ($extraSqlFiles as $fileToInsert) { foreach ($extraSqlFiles as $fileToInsert) {

View File

@@ -93,9 +93,9 @@ class Update
protected function updateToVersion($version, Database $database,Tlog $logger) protected function updateToVersion($version, Database $database,Tlog $logger)
{ {
if (file_exists(THELIA_ROOT . '/install/update/'.$version.'.sql')) { if (file_exists(THELIA_ROOT . '/setup/update/'.$version.'.sql')) {
$logger->debug(sprintf('inserting file %s', $version.'$sql')); $logger->debug(sprintf('inserting file %s', $version.'$sql'));
$database->insertSql(null, array(THELIA_ROOT . '/install/update/'.$version.'.sql')); $database->insertSql(null, array(THELIA_ROOT . '/setup/update/'.$version.'.sql'));
$logger->debug(sprintf('end inserting file %s', $version.'$sql')); $logger->debug(sprintf('end inserting file %s', $version.'$sql'));
} }

View File

@@ -22,16 +22,16 @@ if exist local\config\database.yml (
..\..\bin\propel build -v --output-dir=../../core/lib/ --enable-identifier-quoting ..\..\bin\propel build -v --output-dir=../../core/lib/ --enable-identifier-quoting
echo [INFO] Building SQL CREATE file echo [INFO] Building SQL CREATE file
..\..\bin\propel sql:build -v --output-dir=..\..\install ..\..\bin\propel sql:build -v --output-dir=..\..\setup
echo [INFO] Reloading Thelia2 database echo [INFO] Reloading Thelia2 database
cd ..\.. cd ..\..
del install\sqldb.map del setup\sqldb.map
php Thelia thelia:dev:reloadDB php Thelia thelia:dev:reloadDB
echo [INFO] Installing fixtures echo [INFO] Installing fixtures
php install\faker.php php setup\faker.php
echo [INFO] Clearing caches echo [INFO] Clearing caches
php Thelia cache:clear php Thelia cache:clear

View File

@@ -21,15 +21,15 @@ echo -e "\n\033[01;34m[INFO] Building Models file\033[00m\n"
../../bin/propel build -v --output-dir=../../core/lib/ --enable-identifier-quoting ../../bin/propel build -v --output-dir=../../core/lib/ --enable-identifier-quoting
echo -e "\n\033[01;34m[INFO] Building SQL CREATE file\033[00m\n" echo -e "\n\033[01;34m[INFO] Building SQL CREATE file\033[00m\n"
../../bin/propel sql:build -v --output-dir=../../install/ ../../bin/propel sql:build -v --output-dir=../../setup/
echo -e "\n\033[01;34m[INFO] Reloading Thelia2 database\033[00m\n" echo -e "\n\033[01;34m[INFO] Reloading Thelia2 database\033[00m\n"
cd ../.. cd ../..
rm install/sqldb.map rm setup/sqldb.map
php Thelia thelia:dev:reloadDB php Thelia thelia:dev:reloadDB
echo -e "\n\033[01;34m[INFO] Installing fixtures\033[00m\n" echo -e "\n\033[01;34m[INFO] Installing fixtures\033[00m\n"
php install/faker.php php setup/faker.php
echo -e "\n\033[01;34m[INFO] Adding admin\033[00m\n" echo -e "\n\033[01;34m[INFO] Adding admin\033[00m\n"
php Thelia admin:create --login_name thelia2 --password thelia2 --last_name thelia2 --first_name thelia2 php Thelia admin:create --login_name thelia2 --password thelia2 --last_name thelia2 --first_name thelia2

View File

@@ -9,7 +9,7 @@ echo -e "\n\e[01;34m[INFO] Building Models file\e[00m\n"
../../bin/propel build -v --output-dir=../../core/lib/ ../../bin/propel build -v --output-dir=../../core/lib/
echo -e "\n\e[01;34m[INFO] Building SQL CREATE file\e[00m\n" echo -e "\n\e[01;34m[INFO] Building SQL CREATE file\e[00m\n"
../../bin/propel sql:build -v --output-dir=../../install/ ../../bin/propel sql:build -v --output-dir=../../setup/
echo -e "\n\e[01;34m[INFO] Reloaded Thelia2 database\e[00m\n" echo -e "\n\e[01;34m[INFO] Reloaded Thelia2 database\e[00m\n"
cd ../.. cd ../..
@@ -17,7 +17,7 @@ rm install/sqldb.map
php Thelia thelia:dev:reloadDB php Thelia thelia:dev:reloadDB
echo -e "\n\e[01;34m[INFO] Installing fixtures\e[00m\n" echo -e "\n\e[01;34m[INFO] Installing fixtures\e[00m\n"
php install/faker.php php setup/faker.php
echo -e "\n\e[01;34m[INFO] Adding admin\e[00m\n" echo -e "\n\e[01;34m[INFO] Adding admin\e[00m\n"
php Thelia thelia:create-admin --login_name thelia2 --password thelia2 --last_name thelia2 --first_name thelia2 php Thelia thelia:create-admin --login_name thelia2 --password thelia2 --last_name thelia2 --first_name thelia2

View File

@@ -83,7 +83,7 @@ function createProduct($faker, $categories, $template, $attribute, $feature, $co
{ {
echo "start creating products\n"; echo "start creating products\n";
$fileSystem = new \Symfony\Component\Filesystem\Filesystem(); $fileSystem = new \Symfony\Component\Filesystem\Filesystem();
if (($handle = fopen(THELIA_ROOT . '/install/import/products.csv', "r")) !== FALSE) { if (($handle = fopen(THELIA_ROOT . '/setup/import/products.csv', "r")) !== FALSE) {
$row=0; $row=0;
while (($data = fgetcsv($handle, 100000, ";")) !== FALSE) { while (($data = fgetcsv($handle, 100000, ";")) !== FALSE) {
$row++; $row++;
@@ -134,7 +134,7 @@ function createProduct($faker, $categories, $template, $attribute, $feature, $co
->setProduct($product) ->setProduct($product)
->setFile($image) ->setFile($image)
->save($con); ->save($con);
$fileSystem->copy(THELIA_ROOT . 'install/import/images/'.$image, THELIA_ROOT . 'local/media/images/product/'.$image, true); $fileSystem->copy(THELIA_ROOT . 'setup/import/images/'.$image, THELIA_ROOT . 'local/media/images/product/'.$image, true);
} }
$pses = explode(";", $data[12]); $pses = explode(";", $data[12]);
@@ -199,7 +199,7 @@ function createProduct($faker, $categories, $template, $attribute, $feature, $co
function createBrand($con) function createBrand($con)
{ {
echo "start creating brands feature\n"; echo "start creating brands feature\n";
if (($handle = fopen(THELIA_ROOT . '/install/import/brand.csv', "r")) !== FALSE) { if (($handle = fopen(THELIA_ROOT . '/setup/import/brand.csv', "r")) !== FALSE) {
$row=0; $row=0;
$feature = new \Thelia\Model\Feature(); $feature = new \Thelia\Model\Feature();
$feature $feature
@@ -232,7 +232,7 @@ function createCategories($con)
{ {
echo "start creating categories\n"; echo "start creating categories\n";
$categories = array(); $categories = array();
if (($handle = fopen(THELIA_ROOT . '/install/import/categories.csv', "r")) !== FALSE) { if (($handle = fopen(THELIA_ROOT . '/setup/import/categories.csv', "r")) !== FALSE) {
$row=0; $row=0;
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
$row++; $row++;
@@ -259,7 +259,7 @@ function createCategories($con)
function createColors($con) function createColors($con)
{ {
echo "start creating colors attributes\n"; echo "start creating colors attributes\n";
if (($handle = fopen(THELIA_ROOT . '/install/import/colors.csv', "r")) !== FALSE) { if (($handle = fopen(THELIA_ROOT . '/setup/import/colors.csv', "r")) !== FALSE) {
$row=0; $row=0;
$attribute = new \Thelia\Model\Attribute(); $attribute = new \Thelia\Model\Attribute();
$attribute $attribute

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

View File

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 157 KiB

View File

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 267 KiB

View File

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 254 KiB

View File

Before

Width:  |  Height:  |  Size: 217 KiB

After

Width:  |  Height:  |  Size: 217 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 155 KiB

View File

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

View File

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 141 KiB

View File

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View File

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 208 KiB

View File

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 208 KiB

View File

Before

Width:  |  Height:  |  Size: 203 KiB

After

Width:  |  Height:  |  Size: 203 KiB

View File

Before

Width:  |  Height:  |  Size: 203 KiB

After

Width:  |  Height:  |  Size: 203 KiB

View File

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 199 KiB

View File

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 254 KiB

View File

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View File

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 247 KiB

View File

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 247 KiB

View File

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 177 KiB

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 190 KiB

View File

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

View File

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

View File

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 263 KiB

View File

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 231 KiB

After

Width:  |  Height:  |  Size: 231 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 223 KiB

View File

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 221 KiB

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View File

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View File

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 168 KiB

View File

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

View File

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 156 KiB

View File

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Some files were not shown because too many files have changed in this diff Show More