mirror of
https://github.com/google/nomulus
synced 2026-10-01 04:05:49 +00:00
Set default value of 1 for new not-null columns (#1097)
Use 1 since it's the constant singleton ID
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
-- limitations under the License.
|
||||
|
||||
ALTER TABLE "ServerSecret" DROP CONSTRAINT "ServerSecret_pkey";
|
||||
ALTER TABLE "ServerSecret" ADD COLUMN id bigint NOT NULL;
|
||||
ALTER TABLE "ServerSecret" ADD COLUMN id bigint DEFAULT 1 NOT NULL;
|
||||
ALTER TABLE "ServerSecret" ADD PRIMARY KEY(id);
|
||||
|
||||
ALTER TABLE "TmchCrl" DROP CONSTRAINT "TmchCrl_pkey";
|
||||
ALTER TABLE "TmchCrl" ADD COLUMN id bigint NOT NULL;
|
||||
ALTER TABLE "TmchCrl" ADD COLUMN id bigint DEFAULT 1 NOT NULL;
|
||||
ALTER TABLE "TmchCrl" ADD PRIMARY KEY(id);
|
||||
|
||||
Reference in New Issue
Block a user