-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
226 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,8 84,8 @@ func TestCmdHELO(t *testing.T) { | |
|
||
// Verify that HELO resets the current transaction state like RSET. | ||
// RFC 2821 section 4.1.4 says EHLO should cause a reset, so verify that HELO does it too. | ||
cmdCode(t, conn, "MAIL FROM:<[email protected]>", "250") | ||
cmdCode(t, conn, "RCPT TO:<[email protected]>", "250") | ||
cmdCode(t, conn, "mail from:<[email protected]>", "250") // Also testing case-insensitivity | ||
cmdCode(t, conn, "rcpt to:<[email protected]>", "250") | ||
cmdCode(t, conn, "HELO host.example.com", "250") | ||
cmdCode(t, conn, "DATA", "503") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,22 @@ | ||
-- Rebuild message_tags to remove FOREIGN KEY REFERENCES | ||
PRAGMA foreign_keys=OFF; | ||
|
||
DROP INDEX IF EXISTS {{ tenant "idx_message_tag_id" }}; | ||
DROP INDEX IF EXISTS {{ tenant "idx_message_tag_tagid" }}; | ||
|
||
ALTER TABLE {{ tenant "message_tags" }} RENAME TO _{{ tenant "message_tags" }}_old; | ||
|
||
CREATE TABLE IF NOT EXISTS {{ tenant "message_tags" }} ( | ||
Key INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
ID TEXT NOT NULL, | ||
TagID INTEGER NOT NULL | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS {{ tenant "idx_message_tags_id" }} ON {{ tenant "message_tags" }} (ID); | ||
CREATE INDEX IF NOT EXISTS {{ tenant "idx_message_tags_tagid" }} ON {{ tenant "message_tags" }} (TagID); | ||
|
||
INSERT INTO {{ tenant "message_tags" }} SELECT * FROM _{{ tenant "message_tags" }}_old; | ||
|
||
DROP TABLE IF EXISTS _{{ tenant "message_tags" }}_old; | ||
|
||
PRAGMA foreign_keys=ON; |
Oops, something went wrong.