<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/support/schema, branch 1.8.2</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/support/schema?h=1.8.2</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/support/schema?h=1.8.2'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2011-04-03T20:59:32Z</updated>
<entry>
<title>Remove Dummy Package concept</title>
<updated>2011-04-03T20:59:32Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-31T01:48:09Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=7c91c592458b7532806ef75fe09146f82f085f3b'/>
<id>urn:sha1:7c91c592458b7532806ef75fe09146f82f085f3b</id>
<content type='text'>
Instead, we just store dependencies directly in the PackageDepends
table. Since we don't use this info anywhere besides the package details
page, there is little value in precalculating what is in the AUR vs.
what is not.

An upgrade path is provided via several SQL statements in the UPGRADING
document. There should be no user-visible change from this, but the DB
schema gets a bit more sane and we no longer have loads of junk packages
in our tables that are never shown to the end user. This should also
help the MySQL query planner in several cases as we no longer have to be
careful to exclude dummy packages on every query.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>gendummydata.py: Do not touch output file until we need it.</title>
<updated>2011-03-30T08:27:23Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-03-30T08:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=11366b8a1a156fa645c4f24d4c3bf939e064d4c9'/>
<id>urn:sha1:11366b8a1a156fa645c4f24d4c3bf939e064d4c9</id>
<content type='text'>
Ensures there's no leftover (empty) file if something during
initialization fails.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Ensure users can be deleted when foreign keys are present</title>
<updated>2011-03-04T09:29:14Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-01T16:21:06Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f9eba12312fc6a1758f7f1051a8f30b435175f94'/>
<id>urn:sha1:f9eba12312fc6a1758f7f1051a8f30b435175f94</id>
<content type='text'>
This change is necessary to prevent this:
    mysql&gt; delete from Users where ID = 112;
    ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`aur`.`Packages`, CONSTRAINT `Packages_ibfk_2` FOREIGN KEY (`SubmitterUID`) REFERENCES `Users` (`ID`) ON DELETE NO ACTION)

As a bonus, due to foreign keys, orphaning of packages will be
automatic.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Allow DB connection values to come from the environment</title>
<updated>2011-03-04T09:29:14Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-01T15:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=abd41bbb51ea2340bd06648cc0cd5b9144cce91e'/>
<id>urn:sha1:abd41bbb51ea2340bd06648cc0cd5b9144cce91e</id>
<content type='text'>
Stop hardcoding everything everywhere for those of us that don't use the
localhost/aur/aur/AUR setup. Also allow for the dummy data to be created
in the reload script if it does not exist. Finally, remove two
assumptions that the AUR database already exists.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use a single transaction to write dummy data</title>
<updated>2011-03-04T09:29:13Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-01T15:58:09Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=b9690972d084c09f5cc080322db29c54be872045'/>
<id>urn:sha1:b9690972d084c09f5cc080322db29c54be872045</id>
<content type='text'>
This is immensely faster when using InnoDB since we don't need to sync
after each and every INSERT statement.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Remove database recreation code from "support/schema/reloadtestdb.sh".</title>
<updated>2011-02-28T08:45:29Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-28T08:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f89ba3fb6dc196d7977a002ca3b67b64fb20d974'/>
<id>urn:sha1:f89ba3fb6dc196d7977a002ca3b67b64fb20d974</id>
<content type='text'>
Database is being dropped and recreated in the schema, so there's no
need to do this in "reloadtestdb.sh" as well.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Specify utf8 in database schema.</title>
<updated>2011-02-28T08:38:14Z</updated>
<author>
<name>Loui Chang</name>
<email>louipc.ist@gmail.com</email>
</author>
<published>2011-02-28T01:38:45Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=c638a89314422ab98e91c585e24267bf8a1f79c3'/>
<id>urn:sha1:c638a89314422ab98e91c585e24267bf8a1f79c3</id>
<content type='text'>
Signed-off-by: Loui Chang &lt;louipc.ist@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix some minor bugs in "support/schema/gendummydata.py".</title>
<updated>2011-02-27T18:46:30Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-27T17:19:03Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=bc238965cbb191f8c677d941622d13c8c0472ab1'/>
<id>urn:sha1:bc238965cbb191f8c677d941622d13c8c0472ab1</id>
<content type='text'>
The dummy data generation script used to create wrong package IDs for
both "PackageVotes" and "PackageDepends" tables which led to errors when
reloading the test data (constraints failed). This is fixed by no longer
creating entries with zero ("0") package IDs.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Add "ENGINE = InnoDB" to "CREATE TABLE" statements in the SQL schema.</title>
<updated>2011-02-27T18:46:29Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-27T16:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=816a0cf8d7b2365d38699b72322c785b338350f1'/>
<id>urn:sha1:816a0cf8d7b2365d38699b72322c785b338350f1</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Define "Packages.SubmitterUID" and "Packages.MaintainerUID" as "NULL".</title>
<updated>2011-02-27T18:46:19Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-27T16:12:43Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=1e3fa38de5f940fef474fc3961c70b357b976308'/>
<id>urn:sha1:1e3fa38de5f940fef474fc3961c70b357b976308</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
