Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed postgresql incompatibility

  • Loading branch information...
commit bcfdccb4886c741be01743e7ff27fe8e2d59ce78 1 parent 09f2b1a
@jfro authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 -/migrations/005_create_autoslug_table.php
View
16 -/migrations/005_create_autoslug_table.php
@@ -26,20 +26,20 @@ function up()
// migration could possibly provide an insert function
$add_methods_sql = array();
$add_methods_sql[] = <<<EOSQL
-INSERT INTO ${prefix}autoslug (id ,method ,base10)
-VALUES (NULL , 'base36', '1');
+INSERT INTO ${prefix}autoslug (method ,base10)
+VALUES ('base36', '1');
EOSQL;
$add_methods_sql[] = <<<EOSQL
-INSERT INTO ${prefix}autoslug (id ,method ,base10)
-VALUES (NULL , 'base62', '1');
+INSERT INTO ${prefix}autoslug (method ,base10)
+VALUES ('base62', '1');
EOSQL;
$add_methods_sql[] = <<<EOSQL
-INSERT INTO ${prefix}autoslug (id ,method ,base10)
-VALUES (NULL , 'mixed-smart', '1');
+INSERT INTO ${prefix}autoslug (method ,base10)
+VALUES ('mixed-smart', '1');
EOSQL;
$add_methods_sql[] = <<<EOSQL
-INSERT INTO ${prefix}autoslug (id ,method ,base10)
-VALUES (NULL , 'smart', '1');
+INSERT INTO ${prefix}autoslug (method ,base10)
+VALUES ('smart', '1');
EOSQL;
foreach($add_methods_sql as $sql)
{
Please sign in to comment.
Something went wrong with that request. Please try again.