Skip to content

Commit

Permalink
Pgsql support
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 19, 2017
1 parent 7e689da commit 79ccf7e
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
CHANGELOG
==============

2.2.0
-----------------
* Pgsql support

2.1.0
-----------------
* Using composer-config-plugin
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
}
],
"require": {
"skeeks/cms": "*"
"skeeks/cms": "~5.0 || dev-master"
},
"autoload": {
"psr-4": {
"skeeks\\cms\\measure\\": ""
"skeeks\\cms\\measure\\": "src"
}
},
"extra": {
"config-plugin": {
"web": "config/main.php",
"console": "config/main-console.php"
"web": "src/config/main.php",
"console": "src/config/main-console.php"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,16 @@ public function safeUp()
], $tableOptions);


$this->createIndex('updated_by', '{{%measure}}', 'updated_by');
$this->createIndex('created_by', '{{%measure}}', 'created_by');
$this->createIndex('created_at', '{{%measure}}', 'created_at');
$this->createIndex('updated_at', '{{%measure}}', 'updated_at');

$this->createIndex('name', '{{%measure}}', 'name');
$this->createIndex('symbol_rus', '{{%measure}}', 'symbol_rus');
$this->createIndex('symbol_intl', '{{%measure}}', 'symbol_intl');
$this->createIndex('symbol_letter_intl', '{{%measure}}', 'symbol_letter_intl');
$this->createIndex('def', '{{%measure}}', 'def');

$this->execute("ALTER TABLE {{%measure}} COMMENT = 'Единицы измерения';");
$this->createIndex('measure__updated_by', '{{%measure}}', 'updated_by');
$this->createIndex('measure__created_by', '{{%measure}}', 'created_by');
$this->createIndex('measure__created_at', '{{%measure}}', 'created_at');
$this->createIndex('measure__updated_at', '{{%measure}}', 'updated_at');

$this->createIndex('measure__name', '{{%measure}}', 'name');
$this->createIndex('measure__symbol_rus', '{{%measure}}', 'symbol_rus');
$this->createIndex('measure__symbol_intl', '{{%measure}}', 'symbol_intl');
$this->createIndex('measure__symbol_letter_intl', '{{%measure}}', 'symbol_letter_intl');
$this->createIndex('measure__def', '{{%measure}}', 'def');

$this->addForeignKey(
'measure_created_by', "{{%measure}}",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 79ccf7e

Please sign in to comment.