[Rt-commit] rt branch, 5.0/increase-id-size-in-db, repushed
Michel Rodriguez
michel at bestpractical.com
Thu Mar 26 11:27:16 EDT 2020
The branch 5.0/increase-id-size-in-db was deleted and repushed:
was adf47ce397794492a8474c4ee8aacbae7e19d1bf
now d415e8f0d72831c020570da377dea324f97af998
1: efd915fe3d ! 1: c6d96d3d70 Increase the size of id fields for transactions and attachments to bigint.
@@ -69,6 +69,15 @@
ObjectType varchar(64) CHARACTER SET ascii NOT NULL,
ObjectId integer NOT NULL DEFAULT 0 ,
TimeTaken integer NOT NULL DEFAULT 0 ,
+@@
+ id INTEGER NOT NULL AUTO_INCREMENT,
+ CustomField int NOT NULL ,
+ ObjectType varchar(255) CHARACTER SET ascii NOT NULL, # Final target of the Object
+- ObjectId int NOT NULL , # New -- Replaces Ticket
++ ObjectId BIGINT NOT NULL , # New -- Replaces Ticket
+ SortOrder integer NOT NULL DEFAULT 0 , # New -- ordering for multiple values
+
+ Content varchar(255) NULL ,
diff --git a/etc/upgrade/4.5.4/schema.Pg b/etc/upgrade/4.5.4/schema.Pg
new file mode 100644
2: adf47ce397 ! 2: 0b6a1a06f5 Increase the size of id fields for transactions and attachments to number(19,0).
@@ -47,8 +47,9 @@
--- /dev/null
+++ b/etc/upgrade/4.5.4/schema.Oracle
@@
-+ALTER TABLE Attachments MODIFY id NUMBER(19,0) CONSTRAINT Attachments_Key PRIMARY KEY;
++ALTER TABLE Attachments MODIFY id NUMBER(19,0);
+ALTER TABLE Attachments MODIFY TransactionId NUMBER(19,0) NOT NULL;
+ALTER TABLE Attachments MODIFY Parent NUMBER(19,0) DEFAULT 0 NOT NULL;
-+ALTER TABLE Transactions MODIFY id NUMBER(19,0) CONSTRAINT Transactions_Key PRIMARY KEY;
++ALTER TABLE Transactions MODIFY id NUMBER(19,0);
+ALTER TABLE ObjectCustomFieldValues MODIFY ObjectId NUMBER(19,0) DEFAULT 0 NOT NULL;
+
-: ------- > 3: d415e8f0d7 Update _CoreAccessible and pod with the new id size.
More information about the rt-commit
mailing list