Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1e62938e

Von Sven Schöling vor fast 12 Jahren hinzugefügt

  • ID 1e62938e10b5c7e9f91b09c53660ccb14e6004a6
  • Vorgänger 4b26e243
  • Nachfolger 67643d03

Doku für dbupgrade --create

Unterschiede anzeigen:

scripts/dbupgrade2_tool.pl
73 73
                         for it\'s option \'-T\' are acceptable.
74 74
    --nodeps             List all database upgrades that no other upgrade
75 75
                         depends on
76
    --create=tag         Creates a new upgrade with the supplied tag. This
77
                         action accepts several optional other options. See
78
                         the option section for those. After creating the
79
                         upgrade file your \$EDITOR will be called with it.
76 80
    --apply=tag          Applies the database upgrades \'tag\' and all
77 81
                         upgrades it depends on. If \'--apply\' is used
78 82
                         then the option \'--user\' must be used as well.
......
87 91
                         and --dbpassword.
88 92
    --help               Show this help and exit.
89 93

  
90
  Options:
94
  General Options:
91 95
    --user=name          The name of the user configuration to use for
92 96
                         database connectivity.
93 97
    --dbname=name        Database connection options for the UTF-8
......
96 100
    --dbuser=user
97 101
    --dbpassword=pw
98 102

  
103
  Options for --create:
104
    --type               \'sql\' or \'pl\'. Defaults to sql.
105
    --description        The description field of the generated upgrade.
106
    --encoding           Encoding used for the file. Defaults to \'utf8\'.
107
                         Note: Your editor will not be told to open the file in
108
                         this encoding.
109
    --depends            Tags of upgrades which this upgrade depends upon.
110
                         Defaults to the latest stable release upgrade.
111
                         Multiple values possible.
112

  
99 113
END_HELP
100 114
;
101 115

  
......
237 251

  
238 252
  my $filename    = $params{filename};
239 253
  my $dbupgrader  = $params{dbupgrader};
240
  my $type        = $params{type}        || '';
254
  my $type        = $params{type}        || 'sql';
241 255
  my $description = $params{description} || '';
242 256
  my $encoding    = $params{encoding}    || 'utf-8';
243 257
  my @depends     = @{ $params{depends} };
......
270 284
  print $fh "$comment \@encoding: $encoding\n";
271 285
  close $fh;
272 286

  
287
  print "File $full_filename created.\n";
288

  
273 289
  system("\$EDITOR $full_filename");
274 290
  exit 0;
275 291
}

Auch abrufbar als: Unified diff