Browse Source

Upgrading from 1.1.x would make uri fields have length=255

tags/v1.2.0beta4^0
Mikael Nordfeldth 6 years ago
parent
commit
b2cfbded2e
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      plugins/ActivityModeration/classes/Deleted_notice.php
  2. +1
    -0
      plugins/Event/classes/RSVP.php

+ 1
- 0
plugins/ActivityModeration/classes/Deleted_notice.php View File

@@ -193,6 +193,7 @@ class Deleted_notice extends Managed_DataObject
echo "\nFound old $table table, upgrading it to add 'act_created' field...";

$schemadef['fields']['act_created'] = array('type' => 'datetime', 'not null' => true, 'description' => 'datetime the notice record was created');
$schemadef['fields']['uri']['length'] = 191; // we likely don't have to discover too long keys here
$schema->ensureTable($table, $schemadef);

$deleted = new Deleted_notice();


+ 1
- 0
plugins/Event/classes/RSVP.php View File

@@ -107,6 +107,7 @@ class RSVP extends Managed_DataObject
echo "\nFound old $table table, upgrading it to add 'event_uri' field...";

$schemadef['fields']['event_uri'] = array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'Event URI');
$schemadef['fields']['uri']['length'] = 191; // we likely don't have to discover too long keys here
$schema->ensureTable($table, $schemadef);

$rsvp = new RSVP();


Loading…
Cancel
Save