"Fossies" - the Fresh Open Source Software Archive

Member "4.6.1/db/migrations/01_init_migrations.php" (8 Apr 2021, 462 Bytes) of package /linux/www/studip-4.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?
    2 class InitMigrations extends Migration
    3 {
    4     function description ()
    5     {
    6         return 'initialize database schema for migrations';
    7     }
    8 
    9     function up ()
   10     {
   11         DBManager::get()->exec("
   12             CREATE TABLE IF NOT EXISTS `schema_version` (
   13               `domain` varchar(255) NOT NULL default '',
   14               `version` int(11) NOT NULL default '0',
   15               PRIMARY KEY  (`domain`)
   16             ) ENGINE=MyISAM;
   17         ");
   18     }
   19 }
   20 ?>