Parcourir la source

Merge branch 'dev' of https://github.com/apache/incubator-dolphinscheduler into dev

break60 il y a 5 ans
Parent
commit
70571db6d9
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql

+ 5 - 1
sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql

@@ -13,4 +13,8 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
-*/
+*/
+SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
+SET FOREIGN_KEY_CHECKS=0;
+UPDATE t_ds_resources SET pid=-1,is_directory=false WHERE pid IS NULL;
+UPDATE t_ds_resources SET full_name = concat('/',alias) WHERE pid=-1 and full_name IS NULL;