Piotras' blog: Archive

2008-02-01 - 2008-02-29

midgard_blob once again

Posted on 2008-02-07 18:56:38 UTC.

This class has been introduced in Midgard 1.8 branch, but mostly to satisfy replicator. Today I finished experimental API for Midgard 2.0 and Midgard 1.9 ( with PHP language bindings as well ).

Documentation for midgard_blob needs many improvements but you can take a look at it already today.

Completely new features which wait for you in Midgard 1.9 include:

  • You may create attachment for another attachment
  • You may share attachments among many objects
  • You may use any PHP API part which requires file's absolute path or file handler.
  • You may create new files quickly

midgard-schema and database update

Posted on 2008-02-11 13:21:52 UTC.

I ported some minor database routines from Midgard branch-1-9 to stable branch today. It doesn't mean I ported unstable features. On the contrary , I fixed quite important issues: #193,#214 and #78.

What does it mean exactly?

Datagard creates tables and adds some additional columns and indexes but only those mandatory like sitegroup or guid. midgard-schema is improved and make all database update more clever way:

  • midgard_reflection_property is used to check if property should be indexed ( like parent property or link one )
  • Indexes are created for commonly used metadata columns

When update is performed, midgard-schema checks every single table and column if anything should be done with it:

  • Update is made as much faster as many unchanged columns you have in table ( comparing to shell's datagard )
  • During developing, you may alter table and change columns' type "on the fly".

Testing Midgard 1.9

Posted on 2008-02-21 14:44:58 UTC.

It's not released yet, but I added few scripts which build debian packages hourly, so every developer can install it easier. To make things even more easier I tested this simple script which does everything:

MIDGARD_TEST_REPOSITORY="deb http://www.midgard-project.org/nightly/debian ./"
APT_SOURCES_LIST="/etc/apt/sources.list"

if ! grep $MIDGARD_TEST_REPOSITORY $APT_SOURCES_LIST; then
        cp ${APT_SOURCES_LIST} ${APT_SOURCES_LIST}.midgard.bak
        echo "Adding ${MIDGARD_TEST_REPOSITORY} to ${APT_SOURCES_LIST}"
        echo ${MIDGARD_TEST_REPOSITORY} >> ${APT_SOURCES_LIST}
fi

echo "Updating packages info..."
apt-get update

echo "Installing midgard..."
apt-get --reinstall install libmidgard10 php5-midgard libapache2-mod-midgard midgard-common

Of course you should be logged in as root or at least run it with sudo. As the last line you can add:

/usr/sbin/datagard

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS