mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Merge pull request #8267 from wallabag/fix/2.6-deprecation
Fix deprecation
This commit is contained in:
commit
d00fe83366
1 changed files with 7 additions and 7 deletions
|
@ -27,12 +27,12 @@ class Version20170511211659 extends WallabagMigration
|
||||||
$this->addSql(<<<EOD
|
$this->addSql(<<<EOD
|
||||||
CREATE TEMPORARY TABLE __temp__wallabag_annotation AS
|
CREATE TEMPORARY TABLE __temp__wallabag_annotation AS
|
||||||
SELECT id, user_id, entry_id, text, created_at, updated_at, quote, ranges
|
SELECT id, user_id, entry_id, text, created_at, updated_at, quote, ranges
|
||||||
FROM ${annotationTableName}
|
FROM {$annotationTableName}
|
||||||
EOD
|
EOD
|
||||||
);
|
);
|
||||||
$this->addSql('DROP TABLE ' . $annotationTableName);
|
$this->addSql('DROP TABLE ' . $annotationTableName);
|
||||||
$this->addSql(<<<EOD
|
$this->addSql(<<<EOD
|
||||||
CREATE TABLE ${annotationTableName}
|
CREATE TABLE {$annotationTableName}
|
||||||
(
|
(
|
||||||
id INTEGER PRIMARY KEY NOT NULL,
|
id INTEGER PRIMARY KEY NOT NULL,
|
||||||
user_id INTEGER DEFAULT NULL,
|
user_id INTEGER DEFAULT NULL,
|
||||||
|
@ -42,16 +42,16 @@ CREATE TABLE ${annotationTableName}
|
||||||
updated_at DATETIME NOT NULL,
|
updated_at DATETIME NOT NULL,
|
||||||
quote CLOB NOT NULL,
|
quote CLOB NOT NULL,
|
||||||
ranges CLOB NOT NULL,
|
ranges CLOB NOT NULL,
|
||||||
CONSTRAINT FK_A7AED006A76ED395 FOREIGN KEY (user_id) REFERENCES ${userTableName} (id),
|
CONSTRAINT FK_A7AED006A76ED395 FOREIGN KEY (user_id) REFERENCES {$userTableName} (id),
|
||||||
CONSTRAINT FK_A7AED006BA364942 FOREIGN KEY (entry_id) REFERENCES ${entryTableName} (id) ON DELETE CASCADE
|
CONSTRAINT FK_A7AED006BA364942 FOREIGN KEY (entry_id) REFERENCES {$entryTableName} (id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
CREATE INDEX IDX_A7AED006A76ED395 ON ${annotationTableName} (user_id);
|
CREATE INDEX IDX_A7AED006A76ED395 ON {$annotationTableName} (user_id);
|
||||||
CREATE INDEX IDX_A7AED006BA364942 ON ${annotationTableName} (entry_id);
|
CREATE INDEX IDX_A7AED006BA364942 ON {$annotationTableName} (entry_id);
|
||||||
EOD
|
EOD
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addSql(<<<EOD
|
$this->addSql(<<<EOD
|
||||||
INSERT INTO ${annotationTableName} (id, user_id, entry_id, text, created_at, updated_at, quote, ranges)
|
INSERT INTO {$annotationTableName} (id, user_id, entry_id, text, created_at, updated_at, quote, ranges)
|
||||||
SELECT id, user_id, entry_id, text, created_at, updated_at, quote, ranges
|
SELECT id, user_id, entry_id, text, created_at, updated_at, quote, ranges
|
||||||
FROM __temp__wallabag_annotation;
|
FROM __temp__wallabag_annotation;
|
||||||
EOD
|
EOD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue