All Downloads are FREE. Search and download functionalities are using the official Maven repository.

db.h2.migration.V1.4__alter_secrets_to_add_columns.sql Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
/* Arbitrary text field, optional. */
ALTER TABLE secrets ADD COLUMN description text;

/* Required text field, username of creator.
     Skipping not null because of existing records. */
ALTER TABLE secrets ADD COLUMN createdBy text;

/* Required update timestamp. Defaults to creation time. */
ALTER TABLE secrets ADD COLUMN updatedDate timestamp NOT NULL DEFAULT NOW();

/* Required text field, username of updater.
     Skipping not null because of existing records. */
ALTER TABLE secrets ADD COLUMN updatedBy text;

/*
Risk:
  This migration should not pose any risk. It is only additive.
  The only added constraint is a NOT NULL on a new column where a default IS specified.
*/





© 2015 - 2025 Weber Informatics LLC | Privacy Policy