Indefero

Indefero Commit Details


Date:2012-05-15 15:43:15 (12 years 7 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:839444cc8a2548a68135db76ed7a9c56992a1d3c
Parents: 831439120cc273305558a136dfbc37c3a1a336b3
Message:Use Pluf's new migration capabilities to prevent problems with the circular dependency between project and project activity during new db installations (issue 800). ATTENTION: IDF now needs Pluf a45dc195 or newer!

Changes:

File differences

NEWS.mdtext
11
22
3
4
5
36
47
58
......
1013
1114
1215
16
17
18
1319
1420
1521
# InDefero 1.3.3 - xxx xxx xx xx:xx 2012 UTC
**ATTENTION**: InDefero needs Pluf [a45dc195](http://projects.ceondo.com/p/pluf/source/commit/a45dc195)
or newer to run properly!
## Bugfixes
- If an anonymous or authenticated user had no access to any project in a
authorized_keys file when the public key data contained slashes (thanks
to Simon Gareste for the fix!)
- Under PostgreSQL indefero could not be set up because of a circular
foreign key dependency. This has been fixed (issue 800).
- Under PostgreSQL new projects could not be created due to a failing
foreign key relation. Adding project tags was not possible for a similar
reason. This has been fixed (issue 800, continued).
src/IDF/Migrations/Backup.php
119119
120120
121121
122
123
124
125
122126
123127
foreach ($full_data as $model => $data) {
Pluf_Test_Fixture::load($data, false);
}
foreach ($models as $model) {
$schema->model = new $model();
$schema->createConstraints();
}
return true;
}
src/IDF/Migrations/Install.php
6262
6363
6464
65
66
67
68
6569
6670
6771
......
122126
123127
124128
129
130
131
132
125133
126134
127135
$schema->model = new $model();
$schema->createTables();
}
foreach ($models as $model) {
$schema->model = new $model();
$schema->createConstraints();
}
// Install the permissions
$perm = new Pluf_Permission();
$perm->name = 'Project membership';
$schema = new Pluf_DB_Schema($db);
foreach ($models as $model) {
$schema->model = new $model();
$schema->dropConstraints();
}
foreach ($models as $model) {
$schema->model = new $model();
$schema->dropTables();
}
}

Archive Download the corresponding diff file

Page rendered in 0.08860s using 14 queries.